Closed dmfilipenko closed 3 years ago
Could you try to turn on mongoose debugging https://mongoosejs.com/docs/faq.html#enable_debugging and check query in console.
@yurtaev coupons.find({ discountType: 'standard' }, { limit: 100, projection: { title: true, discountType: true } })
Looks like the correct query, try to check records in database or raw graphql query.
@yurtaev thanks for cooperation. just checked database, and it's seems incorrect.
Some of the fields in database doesnt have field discountType
, but since in mongoose schema default value is standart
, I guess graphql showing this field, even if it empty. for now can be close
I have a such query
which return me a list of coupons
When I'm trying to do a filter
I got this result
Schema composer looks like this
Data model