Skip to content

Attempt to automate GraphQL subscriptions for mutations with directives

License

Notifications You must be signed in to change notification settings

faisalhasnain/graphql-pubsub-directives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-pubsub-directives

Attempt to automate GraphQL subscriptions for mutations with directives

directive @publish(to: String!) on FIELD_DEFINITION
directive @subscribe on FIELD_DEFINITION

type Contact {
  name: String!
}

type Query {
  getContacts: [Contact!]!
}

type Mutation {
  addContact(name: String!): Contact @publish(to: "addedContact")
}

type Subscription {
  addedContact: Contact @subscribe
}

About

Attempt to automate GraphQL subscriptions for mutations with directives

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published