Title: multiple filters with offset paging · Issue #378 · EntityGraphQL/EntityGraphQL · GitHub
Open Graph Title: multiple filters with offset paging · Issue #378 · EntityGraphQL/EntityGraphQL
X Title: multiple filters with offset paging · Issue #378 · EntityGraphQL/EntityGraphQL
Description: I have this below hierarchical query where I want to select a particular item. this works query Incident { incident(id: 1) { id name code contactEmail logoUrl incidentTypeId openDate closeDate inventoryCount dapStateId dapCount created u...
Open Graph Description: I have this below hierarchical query where I want to select a particular item. this works query Incident { incident(id: 1) { id name code contactEmail logoUrl incidentTypeId openDate closeDate inve...
X Description: I have this below hierarchical query where I want to select a particular item. this works query Incident { incident(id: 1) { id name code contactEmail logoUrl incidentTypeId openDate closeDate inve...
Opengraph URL: https://github.com/EntityGraphQL/EntityGraphQL/issues/378
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"multiple filters with offset paging","articleBody":"I have this below hierarchical query where I want to select a particular item. this works\r\n\r\n```\r\nquery Incident {\r\n incident(id: 1) {\r\n id\r\n name\r\n code\r\n contactEmail\r\n logoUrl\r\n incidentTypeId\r\n openDate\r\n closeDate\r\n inventoryCount\r\n dapStateId\r\n dapCount\r\n created\r\n updated\r\n enquiries(filter: null, skip: 0, take: null) {\r\n items {\r\n enquirerDaps(filter: \"dapId==209\", skip: null, take: null) {\r\n items {\r\n id\r\n enquiryId\r\n title\r\n gender\r\n familyName\r\n givenNames\r\n nationalityId\r\n dob\r\n age\r\n religion\r\n medicalConditions\r\n totalRoute\r\n knownClosestRelative\r\n with\r\n dapId\r\n created\r\n updated\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}\r\n```\r\n\r\nThis will return every enquiry with no enquirerDap items where it doesn't match the lower filter and the enquirerDaps items populated where it does match (e.g. in this example anything with 209).\r\n\r\nIdeally I would like just the enquiry and enquiryDaps where there is an explicit match to dapId==209 so I tried introducing a filter at the enquiry level with the logic of only selecting items where there are result of the lower query.\r\n\r\n```\r\n\"enquirerDaps.count()\u003e0\" \r\n```\r\nbut I get back this message\r\n\r\n```\r\n{\r\n \"errors\": [\r\n {\r\n \"message\": \"Method 'count' not found on current context 'OffsetPage`1'\"\r\n }\r\n ]\r\n}\r\n```\r\n\r\nI also tried creating a field on the enquiry object to say how many enquirerDaps are present however that doesn't seem to take the lower filter into account.\r\n\r\nNot 100% sure on best approach here hence trying a number of ways but would really appreciate some guidance on this please.\r\n\r\n","author":{"url":"https://github.com/MarkRuseEL","@type":"Person","name":"MarkRuseEL"},"datePublished":"2024-06-09T08:05:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/378/EntityGraphQL/issues/378"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d7e3a8d-8179-3c0e-07f1-21e9c9a07585 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0C8:11E2A6:6B940:90355:6978ACA5 |
| html-safe-nonce | 4e6382424469cf93e0bbb583083e38fda80147de8c7c82ab9f56e03b85dbf908 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEM4OjExRTJBNjo2Qjk0MDo5MDM1NTo2OTc4QUNBNSIsInZpc2l0b3JfaWQiOiI4MDE0MjYyMTY1NTMzNDA0MzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 619941c0a8d3c03c2ae054d6773dc75b1fac91e4ddb136f16235cf651d9f94a9 |
| hovercard-subject-tag | issue:2342088986 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/EntityGraphQL/EntityGraphQL/378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7315717ad473f6ac40b242c2088dcfd592b86e8c0cdb6cb283fc783e994497b6/EntityGraphQL/EntityGraphQL/issues/378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7315717ad473f6ac40b242c2088dcfd592b86e8c0cdb6cb283fc783e994497b6/EntityGraphQL/EntityGraphQL/issues/378 |
| og:image:alt | I have this below hierarchical query where I want to select a particular item. this works query Incident { incident(id: 1) { id name code contactEmail logoUrl incidentTypeId openDate closeDate inve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MarkRuseEL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/EntityGraphQL/EntityGraphQL git https://github.com/EntityGraphQL/EntityGraphQL.git |
| octolytics-dimension-user_id | 87887288 |
| octolytics-dimension-user_login | EntityGraphQL |
| octolytics-dimension-repository_id | 38514759 |
| octolytics-dimension-repository_nwo | EntityGraphQL/EntityGraphQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38514759 |
| octolytics-dimension-repository_network_root_nwo | EntityGraphQL/EntityGraphQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8aa86d87c47054170094daaf9699b27a28a8448 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width