{
Rick_characters {
status
firstName
lastName
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
import { | |
FieldNode, | |
OperationDefinitionNode, | |
SelectionNode, | |
SelectionSetNode, | |
getVisitFn, | |
Kind, | |
ASTNode, | |
DocumentNode, | |
visit, |
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
/** | |
* Accomodating the JSONPath array range syntax, this is similar to the Python | |
* slice function | |
*/ | |
export function sliceArray<T = unknown>( | |
arr: T[], | |
start?: number, | |
stop?: number, | |
step = 1 | |
): T[] { |
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
/* istanbul ignore file */ | |
import got from "got"; | |
import { print } from "graphql"; | |
import { | |
introspectSchema, | |
RenameRootFields, | |
RenameTypes, | |
} from "@graphql-tools/wrap"; |
{
"results": {
"ops": [
{
"path": "items[0:4]",
"mapping": "$firstResolver.data.version[0].components"
},
{
"path": "items[0:4].items",