Skip to content

Commit 5292b0f

Browse files
committed
[RFR] Ensure ids filter is exposed
1 parent aef5eab commit 5292b0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/introspection/getFilterTypesFromData.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import {
33
GraphQLString,
44
GraphQLInt,
55
GraphQLFloat,
6+
GraphQLList,
7+
GraphQLID,
68
} from 'graphql';
79
import getFieldsFromEntities from './getFieldsFromEntities';
810
import getValuesFromEntities from './getValuesFromEntities';
@@ -97,6 +99,9 @@ export default data =>
9799
{
98100
q: { type: GraphQLString },
99101
},
102+
{
103+
ids: { type: new GraphQLList(GraphQLID) },
104+
},
100105
getFieldsFromEntities(data[key], false),
101106
getRangeFiltersFromEntities(data[key])
102107
),

0 commit comments

Comments
 (0)