Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mfahad017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the latest syntax I guess where you write types like this
const LoginType = new GraphQLObjectType({ name: "Login", fields: () => ({ user: { type: UserType.UserType }, tokens: { type: TokensType }, }), }); const LoginInputType = new GraphQLInputObjectType({ name: "LoginInputType", fields: () => ({ email: { type: new GraphQLNonNull(GraphQLString) }, password: { type: new GraphQLNonNull(GraphQLString) }, }), });
My BE is working fine. Now I want to generate type, queries etc on FE I looked into an article and other all of them use the other approch to create gql types in string
Beta Was this translation helpful? Give feedback.
All reactions