Skip to content

Commit d5d5fdb

Browse files
committed
style(filter): add note to _operators about indexed fields
1 parent 3b7ac62 commit d5d5fdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resolvers/helpers/filter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export function addFieldsWithOperator(
184184
new GraphQLInputObjectType({
185185
name: typeName,
186186
fields: {},
187+
description: 'For performance reason this type contains only *indexed* fields.',
187188
})
188189
)
189190
);
@@ -255,7 +256,7 @@ export function addFieldsWithOperator(
255256
if (Object.keys(operatorsComposer.getFields()).length > 0) {
256257
inputComposer.setField(OPERATORS_FIELDNAME, {
257258
type: operatorsComposer.getType(),
258-
description: 'List of fields that can be filtered via operators',
259+
description: 'List of *indexed* fields that can be filtered via operators.',
259260
});
260261
}
261262

0 commit comments

Comments
 (0)