hasura / go-graphql-client

Package graphql provides a GraphQL client implementation.
MIT License
395 stars 91 forks source link

representing nested query and foreign key #116

Open MohamedKHALILRouissi opened 9 months ago

MohamedKHALILRouissi commented 9 months ago

image

how can we represent this implementation ?

hgiasac commented 9 months ago
var query {
    UserEventSubscription {
        SchemaID string `graphql:"schema_id"`
        UserEventSubscriptionSchemaEvent struct {
            Hostname string `graphql:"hostname"`
        } `graphql:"user_event_subscription_schema_event"`
    } `graphql:"user_event_subscription(where: { event_uuid: { _eq: $s }})"`
}