atulmy/gql-query-builder

Is the type of variables correct in NestedField?

Opened this issue · 0 comments

variables: IQueryBuilderOptions[];

Please refer to the above line, the type of variables in NestedField was set to IQueryBuilderOptions[], just wondering if that's correct at all?

If we look at it here:

test("generates query with variables nested in fields", () => {

The variables object inside nested field would certainly fail the type check IQueryBuilderOptions[].