You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First we need to import GraphQLModule to our `app.module.ts`.
@@ -222,9 +222,31 @@ type Query {
222
222
223
223
Here we have also an argument decorator `@Args` which is an object with the arguments passed into the field in the query.
224
224
225
-
Learn more about resolvers and their argument decorators on the https://docs.nestjs.com/graphql/resolvers#schema-first[NestJS documentation].
225
+
Learn more about resolvers, mutations and their argument decorators on the https://docs.nestjs.com/graphql/resolvers#schema-first[NestJS documentation].
226
+
226
227
228
+
Now start the server and go to `http://localhost:3000/graphql` you should see a playground, here you can test your resolvers.
229
+
230
+
For try querys you only need to write a json with what you need:
231
+
232
+
[source,typescript]
233
+
----
234
+
{
235
+
findAll{
236
+
task
237
+
}
238
+
}
239
+
----
227
240
241
+
To test the mutation you can:
228
242
229
-
=== Code first
230
-
On this approach we are going to use decorators to generate de schema.
0 commit comments