comigor / artemis

Build dart types from GraphQL schemas and queries
MIT License
495 stars 119 forks source link

graphql subscriptions and mutations #396

Closed manuelduarte077 closed 2 years ago

manuelduarte077 commented 2 years ago

I have a query where I can see, how to use mutations and subscriptions, I've been looking but I couldn't find it, maybe I'm doing it wrong.

Thank you so much :)

baconcheese113 commented 2 years ago
    return Mutation(
      options: MutationOptions(
        document: DELETE_NETWORK_MUTATION_DOCUMENT,
        operationName: DELETE_NETWORK_MUTATION_DOCUMENT_OPERATION_NAME,
      ),
      builder: (runMutation, result) {
...
        runMutation(
          DeleteNetworkArguments(
            networkId: networkFrag.id,
          ).toJson(),
        );