Skip to content

Subscription example#35

Open
benjie wants to merge 1 commit intomainfrom
subscription-example
Open

Subscription example#35
benjie wants to merge 1 commit intomainfrom
subscription-example

Conversation

@benjie
Copy link
Copy Markdown
Owner

@benjie benjie commented Oct 3, 2025

query AllUsers {
  allUsers {
    nodes {
      id
      name
    }
  }
}

mutation CreateUser {
  createUser(input:  {
     user:  {
        name: "Anonymous"
     }
  }) {
    user{
      id
      name
    }
  }
}

mutation UpdateUser {
  updateUserById(
    input:  {
       id: 1,
       userPatch:  {
          name: "New Name 3"
       }
    }
  ) {
    user {
      id
      name
    }
  }
}

subscription Updated {
  userUpdated(id: 1) {
    id
    name
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant