Skip to content

Commit

Permalink
docs: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
joual committed Mar 13, 2020
1 parent 06bc3ff commit b931510
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function mock(schema: GraphQLSchema, query: string, partialMock?: any, op
const document = parse(query);

const mockResolverFunction = function(type: GraphQLType, typeName?: string, fieldName?: string) {
// TODO: clean up this comment, which was taken as-is from apollo
// order of precendence for mocking:
// 1. if the object passed in already has fieldName, just use that
// --> if it's a function, that becomes your resolver
Expand Down

0 comments on commit b931510

Please sign in to comment.