Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Data model should match Fauna gql meta descriptions #3

Open
3 of 6 tasks
ptpaterson opened this issue Jul 21, 2019 · 1 comment
Open
3 of 6 tasks

Data model should match Fauna gql meta descriptions #3

ptpaterson opened this issue Jul 21, 2019 · 1 comment
Labels
wip Work In Progress

Comments

@ptpaterson
Copy link
Owner

ptpaterson commented Jul 21, 2019

Fauna docs provide examples of how a graphql schema can be represented. https://docs.fauna.com/fauna/current/api/graphql/endpoints

Todo:

  • Update List and Non Null representation
  • Include directives, type-level and field-level.
  • Update Typescript Types
  • Implement handling NotNull
  • Update Docs

Things to think about but will work on later:

  • define the Query type's fields with directives and create helpers that will run the correct index based on the data model. This will make GraphQL client resolvers even easier to use.
@ptpaterson
Copy link
Owner Author

List and Non Null example:

type: { NotNull: { List: { NotNull: { Named: 'User' } } } }

index directive example

directives: [ { name: 'index', args: { name: 'allUsers' } } ]

@ptpaterson ptpaterson added the wip Work In Progress label Jul 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wip Work In Progress
Projects
None yet
Development

No branches or pull requests

1 participant