Skip to content
Discussion options

You must be logged in to vote

We would suggest you to use "Input Types" for complex object types (e.g. shop_services and shop_brands in your case), which can make your mutations simpler to manage. You can refer to the official GraphQL document on the same:

https://graphql.org/learn/schema/#input-types

In your case, you are looking at passing an array of these Input Types (shop_services and shop_brands) as part of the mutation.

Please checkout some illustrations on our Hasura docs page too:
https://hasura.io/docs/latest/mutations/postgres/insert/

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ravargash
Comment options

@adas98012
Comment options

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