Skip to content

Commit

Permalink
docs: fixed indentation in README code blocks (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
jguddas committed Feb 14, 2024
1 parent dc63011 commit df2d998
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/graphql-parse-resolve-info/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Example usage:

```js
const {
parseResolveInfo,
simplifyParsedResolveInfoFragmentWithType
parseResolveInfo,
simplifyParsedResolveInfoFragmentWithType
} = require('graphql-parse-resolve-info');
// or import { parseResolveInfo, simplifyParsedResolveInfoFragmentWithType } from 'graphql-parse-resolve-info';

Expand All @@ -87,9 +87,9 @@ new GraphQLObjectType({
resolve(data, args, context, resolveInfo) {
const parsedResolveInfoFragment = parseResolveInfo(resolveInfo);
const { fields } = simplifyParsedResolveInfoFragmentWithType(
parsedResolveInfoFragment,
ComplexType
);
parsedResolveInfoFragment,
ComplexType
);
console.dir(fields);
...
}
Expand All @@ -115,8 +115,8 @@ Example usage:

```js
const {
parseResolveInfo,
simplifyParsedResolveInfoFragmentWithType
parseResolveInfo,
simplifyParsedResolveInfoFragmentWithType
} = require('graphql-parse-resolve-info');

new GraphQLObjectType({
Expand All @@ -129,9 +129,9 @@ new GraphQLObjectType({
const parsedResolveInfoFragment = parseResolveInfo(resolveInfo);

const { fields } = simplifyParsedResolveInfoFragmentWithType(
parsedResolveInfoFragment,
ComplexType
);
parsedResolveInfoFragment,
ComplexType
);
...
}
}
Expand Down

0 comments on commit df2d998

Please sign in to comment.