Skip to content

Commit 861e64d

Browse files
authored
fix typing for mutate to allow for Object types...
It may be related to the problem with [this pr](#15). Also see [here](https://discuss.dgraph.io/t/lambda-json-mutation/16143). Hopefully this fixes the JSON mutation not working problem, either way this needs to be updated.
1 parent e2803f3 commit 861e64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slash-graphql-lambda-types/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ declare module "@slash-graphql/lambda-types" {
7878
graphql: (s: string, vars: Record<string, any> | undefined, ah?: AuthHeaderField) => Promise<GraphQLResponse>;
7979
dql: {
8080
query: (s: string, vars: Record<string, any> | undefined) => Promise<GraphQLResponse>;
81-
mutate: (s: string) => Promise<GraphQLResponse>;
81+
mutate: (s: string | Object) => Promise<GraphQLResponse>;
8282
};
8383
authHeader?: AuthHeaderField;
8484
};

0 commit comments

Comments
 (0)