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
Copy file name to clipboardExpand all lines: README.md
+51-41Lines changed: 51 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,66 +16,76 @@ The Library will try to follow the following standards and documents:
16
16
```csharp
17
17
varheroRequest=newGraphQLRequest {
18
18
Query=@"
19
-
{
20
-
hero {
21
-
name
22
-
}
23
-
}"
19
+
{
20
+
hero {
21
+
name
22
+
}
23
+
}"
24
24
};
25
25
```
26
26
27
27
#### OperationName and Variables Request:
28
+
28
29
```csharp
29
-
varheroAndFriendsRequest=newGraphQLRequest {
30
+
varpersonAndFilmsRequest=newGraphQLRequest {
30
31
Query=@"
31
-
query HeroNameAndFriends($episode: Episode) {
32
-
hero(episode: $episode) {
33
-
name
34
-
friends {
35
-
name
36
-
}
37
-
}
38
-
}",
39
-
OperationName="HeroNameAndFriends",
40
-
Variables=new {
41
-
episode="JEDI"
42
-
}
32
+
query PersonAndFilms($id: ID) {
33
+
person(id: $id) {
34
+
name
35
+
filmConnection {
36
+
films {
37
+
title
38
+
}
39
+
}
40
+
}
41
+
}",
42
+
OperationName="PersonAndFilms",
43
+
Variables=new {
44
+
id="cGVvcGxlOjE="
45
+
}
43
46
};
44
47
```
45
48
46
49
Be careful when using `byte[]` in your variables object, as most JSON serializers will treat that as binary data! If you really need to send a *list of bytes* with a `byte[]` as a source, then convert it to a `List<byte>` first, which will tell the serializer to output a list of numbers instead of a base64-encoded string.
0 commit comments