Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible resolver function #1407

Closed
mustafacol opened this issue Dec 4, 2020 · 2 comments
Closed

Incompatible resolver function #1407

mustafacol opened this issue Dec 4, 2020 · 2 comments

Comments

@mustafacol
Copy link

mustafacol commented Dec 4, 2020

What happened?

Resolver function does not return array of object(Question) even its return type []*prisma.Question

What did you expect?

Return array of object
Triggered QuestionExecArray

Minimal graphql.schema and models to reproduce

type User {
  id: ID! @id
  email: String! @unique
  password: String!
  phone:String!
  step:Int
  profile: Profile
  preference : Preference
  questions : [Question!]
  createdAt: DateTime! @createdAt
}
type Question @embedded{
  qid:          Int!
  forMe:        Int!
  forOther:     Int!
  importance:   Int!
}

versions

  • gqlgen version? v0.13.0
  • go version? go1.15.5 windows/amd64
  • dep or go modules? Prisma CLI version: prisma/1.34.10 (windows-x64) node-v14.15.1 Prisma server version: 1.34.10
@frederikhors
Copy link
Collaborator

Please format your code using: ```go.

Can this help you? #874

If yes please close this issue.

@mustafacol
Copy link
Author

Sorry but does not work

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

No branches or pull requests

2 participants