Skip to content

get server schema/json instead of declare manually? #80

@gotexis

Description

@gotexis

I saw this from the documentation - the plugin does know of the schema of the grapheQL server.

https://vuex-orm.github.io/plugin-graphql/guide/faq.html#does-vuex-orm-graphql-know-my-graphql-schema

Yes, it does! Before the first query is sent, the plugin loads the schema from the GraphQL server and extracts different information like the types of the fields to use, which fields to ignore, because they're not in the schema and whether custom queries and mutations return a connection or a record.

GraphQL servers usually generate a single schema.json for the app.

I wonder if there is a way to consume it, instead of declaring all models/fields manually, like I have read in vuex-orm-core documentation.

This may be too much to ask tho

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions