Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored and benjamn committed Feb 15, 2023
1 parent eff9be8 commit 4d92c5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utilities/graphql/__tests__/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ describe('removeClientSetsFromDocument', () => {
expect(print(doc)).toBe(print(expected));
});

it("should not remove __typename only fragment without @client", () => {
it("should not remove __typename only fragment (without @client)", () => {
const query = gql`
query {
author {
Expand Down
4 changes: 3 additions & 1 deletion src/utilities/graphql/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ function getDirectiveMatcher(
export function removeDirectivesFromDocument(
directives: RemoveDirectiveConfig[],
doc: DocumentNode,
{removeTypenameOnlyFragment}: {removeTypenameOnlyFragment: boolean} = {removeTypenameOnlyFragment: false}
{ removeTypenameOnlyFragment }: { removeTypenameOnlyFragment: boolean } = {
removeTypenameOnlyFragment: false,
}
): DocumentNode | null {
const variablesInUse: Record<string, boolean> = Object.create(null);
let variablesToRemove: RemoveArgumentsConfig[] = [];
Expand Down

0 comments on commit 4d92c5f

Please sign in to comment.