Skip to content

Commit 8f826e6

Browse files
authored
Update CONTRIBUTING.md
1 parent ebfea70 commit 8f826e6

File tree

1 file changed

+162
-0
lines changed

1 file changed

+162
-0
lines changed

.github/CONTRIBUTING.md

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,166 @@ __Command to run tests:__
7575
make test
7676
```
7777

78+
__Manual Testing:__
79+
80+
For manually testing using graphql playground, you can paste following queries and mutations in your playground and test it
81+
82+
```gql
83+
mutation Signup {
84+
signup(params: {
85+
86+
password: "test",
87+
confirm_password: "test",
88+
given_name: "lakhan"
89+
}) {
90+
message
91+
user {
92+
id
93+
family_name
94+
given_name
95+
email
96+
email_verified
97+
}
98+
}
99+
}
100+
101+
mutation ResendEamil {
102+
resend_verify_email(params: {
103+
104+
identifier: "basic_auth_signup"
105+
}) {
106+
message
107+
}
108+
}
109+
110+
query GetVerifyRequests {
111+
_verification_requests {
112+
id
113+
token
114+
expires
115+
identifier
116+
}
117+
}
118+
119+
mutation VerifyEmail {
120+
verify_email(params: {
121+
token: ""
122+
}) {
123+
access_token
124+
expires_at
125+
user {
126+
id
127+
email
128+
given_name
129+
email_verified
130+
}
131+
}
132+
}
133+
134+
mutation Login {
135+
login(params: {
136+
137+
password: "test"
138+
}) {
139+
access_token
140+
expires_at
141+
user {
142+
id
143+
family_name
144+
given_name
145+
email
146+
}
147+
}
148+
}
149+
150+
query GetSession {
151+
session {
152+
access_token
153+
expires_at
154+
user {
155+
id
156+
given_name
157+
family_name
158+
email
159+
email_verified
160+
signup_methods
161+
created_at
162+
updated_at
163+
}
164+
}
165+
}
166+
167+
mutation ForgotPassword {
168+
forgot_password(params: {
169+
170+
}) {
171+
message
172+
}
173+
}
174+
175+
mutation ResetPassword {
176+
reset_password(params: {
177+
token: ""
178+
password: "test"
179+
confirm_password: "test"
180+
}) {
181+
message
182+
}
183+
}
184+
185+
mutation UpdateProfile {
186+
update_profile(params: {
187+
family_name: "samani"
188+
}) {
189+
message
190+
}
191+
}
192+
193+
query GetUsers {
194+
_users {
195+
id
196+
email
197+
email_verified
198+
given_name
199+
family_name
200+
picture
201+
signup_methods
202+
phone_number
203+
}
204+
}
205+
206+
mutation MagicLinkLogin {
207+
magic_link_login(params: {
208+
209+
}) {
210+
message
211+
}
212+
}
213+
214+
mutation Logout {
215+
logout {
216+
message
217+
}
218+
}
219+
220+
mutation UpdateUser{
221+
_update_user(params: {
222+
id: "dafc9400-d603-4ade-997c-83fcd54bbd67",
223+
roles: ["user", "admin"]
224+
}) {
225+
email
226+
roles
227+
}
228+
}
229+
230+
mutation DeleteUser {
231+
_delete_user(params: {
232+
233+
}) {
234+
message
235+
}
236+
}
237+
```
238+
239+
78240

0 commit comments

Comments
 (0)