Code: contentful gatsby graphql filter elemMatch AND multiple
If I use the following filter, it’s OR filter: {tags: {elemMatch: {contentful_id: {eq: $tagId}, name: {eq: "published"}}}} because filters over multiple fields are OR filter: { tags: { elemMatch: { contentful_id: { eq: $tagId }, name: { eq: "published" } } } } resulting in tag.id === $tagId OR tag.name === “published” If instead I use (abuse) the different matcher things for the same field, it is AND filter: {tags: {elemMatch: {contentful_id: {}, name: {eq: "published", in: "i....