Skip to content

Commit ff1c2f7

Browse files
authored
Merge pull request #11 from ejnshtein/prepare-request-fields-argument-fix
allow not array as first argument of prepareRequest
2 parents 58a5d12 + dca27cb commit ff1c2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/prepare-document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const prepareFieldString = (
5050
};
5151

5252
export const prepareRequest = (
53-
fields: AbstractField<any, any, any>[],
53+
fields: AbstractField<any, any, any> | AbstractField<any, any, any>[],
5454
type: GraphQlRequestType
5555
): GraphQLDocument => {
5656
const fieldsArray = Array.isArray(fields) ? fields : [fields];

0 commit comments

Comments
 (0)