Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Fix JSON inputs throwing Unexpected node type error #61

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/casl/casl.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,16 +537,6 @@ export class CaslHelper {
visit(inputAst, {
ObjectField: {
enter: (node) => {
// Only single-deep fields are allowed in input data at the moment. I.e., you cannot
// create relations in a single mutation.
this.assertNodeKind(node.value, [
Kind.ENUM,
Kind.STRING,
Kind.INT,
Kind.BOOLEAN,
Kind.FLOAT,
Kind.NULL
]);
inputFields.add(node.name.value);
}
}
Expand Down