馃寠 A GraphQL implementation in Gleam
1---
2version: 1.4.1
3title: Mutation with input object argument
4file: ./test/mutation_sdl_test.gleam
5test_name: mutation_with_input_object_test
6---
7"""Input for creating a user"""
8input CreateUserInput {
9 """User name"""
10 name: String!
11 """Email address"""
12 email: String!
13 """Age"""
14 age: Int
15}
16
17"""A user"""
18type User {
19 """User ID"""
20 id: ID
21 """User name"""
22 name: String
23}
24
25"""Mutations"""
26type Mutation {
27 """Create a new user"""
28 createUser: User
29}