Skip to content

Tag: graphql

How to define Nested enum type in GraphQL schema

I have an enum defined in graphql schema as below: But the WILDCARD query, can be further specified as STARTSWITH, ENDSWITH and CONTAINS, So can we achieve something like below while defining Schema or Answer There are no such nested enums in GraphQL schema. You can consider to model it using two separate fields with separate enums . And suppose

GraphQL Input type declaration for Mutation

I’m new to GraphQL and after some coding I bumped into a problem with declaring an Input type for a Mutation. Here’s my Schema: When I run my app, I get the error Caused by: Expected type ‘IdInput’ to be a GraphQLInputType, but it wasn’t! Was a type only permitted for object types incorrectly used as an input type,

How to query an API with graphql requests [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 12 months ago. Improve this question Currently I am using Postman with POST and GRAPHQL type queries. I wish I could query the API with spring-boot. First, I want to make