Replies: 2 comments
-
Seeing your code for the subscription resolver would be useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
The listening subscription returned no data when the updates occurred
What did you expect?
New added data based on subscription (subscribed to) returns the new data on the right-hand panel at localhost:8080
Minimal graphql.schema and models to reproduce
type Todo {
id: ID!
text: String!
done: Boolean!
user: User!
textLength: Int!
}
type User {
id: ID!
name: String!
}
input NewTodo {
text: String!
userId: String!
}
type Query {
todos: [Todo!]!
users: [User!]!
}
input NewUser {
name: String!
}
type Mutation {
createTodo(input: NewTodo!): Todo!
createUser(input: NewUser!): User!
}
type Subscription {
userAdded: User!
}
[based on https://www.inovex.de/blog/graphql-application-golang-tutorial/]
versions
gqlgen version
? v0.13.0go version
? go version go1.16.2 linux/amd64Beta Was this translation helpful? Give feedback.
All reactions