Skip to content

Commit

Permalink
Merge pull request #14 from social-native/feat/add-default-resolver
Browse files Browse the repository at this point in the history
Feat: add default resolvers
  • Loading branch information
erhathaway authored May 7, 2019
2 parents 880a430 + 39745a1 commit 489c9a9
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 9 deletions.
6 changes: 6 additions & 0 deletions dist/graphqlSchema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ declare const resolvers: {
Last: GraphQLScalarType;
Before: GraphQLScalarType;
After: GraphQLScalarType;
IConnection: {
__resolveType(): null;
};
IEdge: {
__resolveType(): null;
};
};
declare const gqlTypes: {
filter: GraphQLScalarType;
Expand Down
18 changes: 14 additions & 4 deletions dist/index.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,10 @@ const filterScalar = new graphql.GraphQLInputObjectType({
}
});
const filterDescription = `
The filter input scalar is a
union of the
The filter input scalar is a
union of the
IFilter and ICompundFIlter.
It allows for recursive
It allows for recursive
nesting of filters using
'and', 'or', and 'not' as
composition operators
Expand Down Expand Up @@ -617,7 +617,17 @@ const resolvers = {
First: first,
Last: last,
Before: before,
After: after
After: after,
IConnection: {
__resolveType() {
return null;
}
},
IEdge: {
__resolveType() {
return null;
}
}
};
const gqlTypes = {
filter,
Expand Down
18 changes: 14 additions & 4 deletions dist/index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,10 @@ const filterScalar = new GraphQLInputObjectType({
}
});
const filterDescription = `
The filter input scalar is a
union of the
The filter input scalar is a
union of the
IFilter and ICompundFIlter.
It allows for recursive
It allows for recursive
nesting of filters using
'and', 'or', and 'not' as
composition operators
Expand Down Expand Up @@ -613,7 +613,17 @@ const resolvers = {
First: first,
Last: last,
Before: before,
After: after
After: after,
IConnection: {
__resolveType() {
return null;
}
},
IEdge: {
__resolveType() {
return null;
}
}
};
const gqlTypes = {
filter,
Expand Down
12 changes: 11 additions & 1 deletion src/graphqlSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,17 @@ const resolvers = {
First: first,
Last: last,
Before: before,
After: after
After: after,
IConnection: {
__resolveType() {
return null;
}
},
IEdge: {
__resolveType() {
return null;
}
}
};

const gqlTypes = {
Expand Down

0 comments on commit 489c9a9

Please sign in to comment.