Closed Valdenirmezadri closed 5 years ago
I figured out what the problem was, there were two declared schemas
hi @Valdenirmezadri , I'm running into the same issue. Could you please explain how did you resolve it? What did you mean "two declared schemas"?
hi @Valdenirmezadri , I'm running into the same issue. Could you please explain how did you resolve it? What did you mean "two declared schemas"?
I created two schema, one was a test, and I was just declaring the wrong
Good morning.
I'm having a very strange error and I can not figure out what it is
if I pass variables of type string, queries work
Any other type generates error
however, if I pass the values straight, it works
my code:
GetMensagens = graphql.Field{ Name: "getMensagens", Type: graphql.NewList(mensagemType), Description: "Pega todas as mensagens de uma conversa pelo id da conversa", Args: graphql.FieldConfigArgument{ "conversaID": &graphql.ArgumentConfig{ Type: graphql.NewNonNull( graphql.Int, ), }, }, Resolve: func(params graphql.ResolveParams) (interface{}, error) { println("#### cheguei aqui #######") return nil, errors.New("Resolved ") },
the login code:
graphql.Field{ Name: "login", Type: loginType, Description: "executa o login com e-mail e senha", Args: graphql.FieldConfigArgument{ "email": &graphql.ArgumentConfig{ Type: graphql.NewNonNull(graphql.String), }, "senha": &graphql.ArgumentConfig{ Type: graphql.NewNonNull(graphql.String), }, }, Resolve: resolveLogin, }