-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06c665f
commit 2937d24
Showing
41 changed files
with
2,551 additions
and
1,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eth-graphql": minor | ||
--- | ||
|
||
Add support for MULT field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
export const FINAL_BOSS_CALL_FRAGMENT = /* GraphQL */ ` | ||
getAnyMovie { | ||
id | ||
title | ||
status | ||
} | ||
movies(arg0: 0) { | ||
id | ||
title | ||
status | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
getAllMovies { | ||
id | ||
title | ||
status | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
getMultipleValues { | ||
value0 | ||
value1 | ||
value2 { | ||
name | ||
walletAddress | ||
} | ||
} | ||
getNothing | ||
getString | ||
getNamedString | ||
getBoolean | ||
getAddress | ||
getBytes | ||
getUint | ||
getInt | ||
getTuple | ||
overloadedFn0(arg0: 10) { | ||
value0 | ||
value1 | ||
} | ||
overloadedFn1 { | ||
value0 | ||
value1 | ||
} | ||
overloadedFn2(arg0: "some-string", arg1: "10000000000000000000", arg2: "") { | ||
value0 | ||
value1 | ||
} | ||
passUnnamedString(arg0: "some-string") | ||
passString(someString: "some-string") | ||
passBoolean(someBoolean: true) | ||
passAddress(someAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111") | ||
passBytes( | ||
someBytes: "0xed6c11b0b5b808960df26f5bfc471d04c1995b0ffd2055925ad1be28d6baadfd" | ||
) | ||
passUint(someUint: "128738121231267831231323") | ||
passInt(someInt: 1265341) | ||
passTuple(someTuple: ["0", "1", "2"]) | ||
passMovie( | ||
someMovie: { | ||
id: "0" | ||
title: "fake movie" | ||
status: "1" | ||
director: { | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
) { | ||
id | ||
title | ||
status | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
mayhem( | ||
arg0: "fake string" | ||
someUint: 671432189 | ||
arg2: ["1000000000000000000", "200000000000000000"] | ||
someMovies: [ | ||
{ | ||
id: "0" | ||
title: "fake movie" | ||
status: "1" | ||
director: { | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
{ | ||
id: "0" | ||
title: "fake movie" | ||
status: "1" | ||
director: { | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
] | ||
someDirectors: [ | ||
{ | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
{ | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
] | ||
someStatuses: [0, 1, 1, 1] | ||
) { | ||
passedMovies { | ||
id | ||
title | ||
status | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
value1 | ||
statuses | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
mayhem_MULT(args: [{ | ||
arg0: "fake string 0" | ||
someUint: 671432189 | ||
arg2: ["1000000000000000000", "200000000000000000"] | ||
someMovies: [ | ||
{ | ||
id: "0" | ||
title: "fake movie 0" | ||
status: "0" | ||
director: { | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
{ | ||
id: "1" | ||
title: "fake movie 1" | ||
status: "1" | ||
director: { | ||
name: "fake director" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
] | ||
someDirectors: [ | ||
{ | ||
name: "fake director 0" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
{ | ||
name: "fake director 1" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
] | ||
someStatuses: [0, 1, 1, 1] | ||
}, { | ||
arg0: "fake string 1" | ||
someUint: 671432189 | ||
arg2: ["3000000000000000000", "400000000000000000"] | ||
someMovies: [ | ||
{ | ||
id: "2" | ||
title: "fake movie 2" | ||
status: "1" | ||
director: { | ||
name: "fake director 1" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
{ | ||
id: "3" | ||
title: "fake movie 3" | ||
status: "0" | ||
director: { | ||
name: "fake director 1" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
} | ||
] | ||
someDirectors: [ | ||
{ | ||
name: "fake director 2" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
{ | ||
name: "fake director 3" | ||
walletAddress: "0xA5ae0b2386De51Aba852551A1EE828BfD598E111" | ||
} | ||
] | ||
someStatuses: [1, 0, 1, 0] | ||
}]) { | ||
passedMovies { | ||
id | ||
title | ||
status | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
value1 | ||
statuses | ||
director { | ||
name | ||
walletAddress | ||
} | ||
} | ||
`; |
Oops, something went wrong.