Skip to content
Discussion options

You must be logged in to vote

Effectively yes. Their purpose is to help to define the GraphQL query.

Each type may have lots of other fields that is not actively used in your specific case. For example, you have the GraphQL type User(int Id, string Email, string Name) but you select only Id and Name. It would be much better to create and use your own type for this use case, otherwise the property Email would just be null and completely useless. However, you can access it via autocomplete what is super weird.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@byme8
Comment options

@sywor
Comment options

@byme8
Comment options

Answer selected by sywor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants