Tag: filter
-
C++20’s std::views::filter not filtering the view correctly
7 I was writing a simple C++ program that generates a list of random integer values from a normal distribution, then takes first N generated items and filters them so that their absolute value is greater than 42. The code i wrote is the following: int main() { //convenience namespace rng = std::ranges; namespace view…
-
How can I replace “some” parameter in GRAPHQL query?
0 I’ve the follow query and I wanna get only one result of siteAttributeValues that will be regarding to search in "variables". What can I use instead of some in my query? { "query": "query($search: String!){rn sites(take: 10, where: { siteAttributeValues: { some: { stringValue: { like: $search } } } }){rn items{rn idrn namern…
-
GraphQL: Only fetch objects with a certain property equals `null`
0 I have a GraphQL query query testQuery { books { title isbn publisher metadata { propertyA propertyB propertyC } } } In the GraphQL schema, metadata is an optional field. The other three are required, and all of them are string. My question: I only want to filter items where the metadata is null…