René's URL Explorer Experiment


Title: Query Params Do Not Support Multiple Filters on the Same Key (e.g. `created_at=gte...&created_at=lte...`) · Issue #296 · flutterdata/flutter_data · GitHub

Open Graph Title: Query Params Do Not Support Multiple Filters on the Same Key (e.g. `created_at=gte...&created_at=lte...`) · Issue #296 · flutterdata/flutter_data

X Title: Query Params Do Not Support Multiple Filters on the Same Key (e.g. `created_at=gte...&created_at=lte...`) · Issue #296 · flutterdata/flutter_data

Description: Description: I'm encountering an issue where query parameters do not support multiple filters on the same key when using array values. For example, filtering with: created_at=gte.2025-04-03&created_at=lte.2025-04-05 is a common pattern i...

Open Graph Description: Description: I'm encountering an issue where query parameters do not support multiple filters on the same key when using array values. For example, filtering with: created_at=gte.2025-04-03&created...

X Description: Description: I'm encountering an issue where query parameters do not support multiple filters on the same key when using array values. For example, filtering with: created_at=gte.2025-04-03&...

Opengraph URL: https://github.com/flutterdata/flutter_data/issues/296

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Query Params Do Not Support Multiple Filters on the Same Key (e.g. `created_at=gte...&created_at=lte...`)","articleBody":"**Description:**\n\nI'm encountering an issue where query parameters do not support multiple filters on the same key when using array values. For example, filtering with:\n\n```\ncreated_at=gte.2025-04-03&created_at=lte.2025-04-05\n```\n\nis a common pattern in PostgREST to filter by a range, but the library currently fails to handle this correctly.\n\n---\n\n**Reproduction Code:**\n\n```dart\nref.expenseEntities.findAll(params: {\n  'created_at': ['gte.2025-04-03', 'lte.2025-04-05']\n});\n```\n\n**Decoded URL:**\n\n```\ncreated_at=[gte.2025-04-03,+lte.2025-04-05]\n```\n\n---\n\n**Error from PostgREST:**\n\n```\nunhandled Exception: DataException: \n{\n  code: PGRST100,\n  details: unexpected \"[\" expecting \"not\" or operator (eq, gt, ...),\n  message: \"failed to parse filter ([gte.2025-04-03, lte.2025-04-05])\"\n}\n```\n\n---\n\n**Temporary Workaround:**\n\nI resolved this by manually constructing the URI to ensure repeated keys are supported:\n\n```dart\nfinal parseUri = Uri.parse(baseUrl);\nfinal uri = parseUri.replace(\n  path: '${parseUri.path}/${urlForFindAll(params)}'.replaceAll('//', '/'),\n  queryParameters: params,\n);\nsendRequest\u003cList\u003cT>>(\n  uri,\n  method: methodForFindAll(params),\n  headers: headers,\n  label: label,\n);\n```\n\nThis works for now, but it feels like a workaround rather than a clean solution. Ideally, the library should support multiple filters for the same key in a proper way compatible with PostgREST.\n\n---\n\n**Expected Behavior:**\n\nThe library should generate query strings with repeated keys when array values are provided in the `params`, like:\n\n```\n...?created_at=gte.2025-04-03&created_at=lte.2025-04-05\n```\n\n---\n\n**Additional Notes:**\n\nLet me know if I’m missing a proper way to handle this use case within the current API. Otherwise, I hope this can be improved in a future release!\n\n","author":{"url":"https://github.com/putheng","@type":"Person","name":"putheng"},"datePublished":"2025-05-03T04:07:54Z","url":"https://github.com/flutterdata/flutter_data/issues/296"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a3c843f8-7a9d-4591-9636-96a230366a16
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBC0:11486D:6CDC19:8F2866:6B00D49B
html-safe-nonce1bcac83e6848c3d4d464f9e51063f0e55e92bd5a09b20f74ef399ebbd7ae668e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkMwOjExNDg2RDo2Q0RDMTk6OEYyODY2OjZCMDBENDlCIiwidmlzaXRvcl9pZCI6IjIyNDkxMTM3OTQ0NzMxNTM2OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6d01a9e69896e3c7890c4d37c1aabd95ef246e7f24012f333263baf11c6c1b6f
hovercard-subject-tagissue:3037148973
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/flutterdata/flutter_data/296/issue_layout
twitter:imagehttps://opengraph.githubassets.com/34387db952ed8d69839c8442507656288c63315d56d6c0cf19f6c7594caf42d0/flutterdata/flutter_data/issues/296
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/34387db952ed8d69839c8442507656288c63315d56d6c0cf19f6c7594caf42d0/flutterdata/flutter_data/issues/296
og:image:altDescription: I'm encountering an issue where query parameters do not support multiple filters on the same key when using array values. For example, filtering with: created_at=gte.2025-04-03&created...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameputheng
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
turbo-cache-controlno-preview
go-importgithub.com/flutterdata/flutter_data git https://github.com/flutterdata/flutter_data.git
octolytics-dimension-user_id61839689
octolytics-dimension-user_loginflutterdata
octolytics-dimension-repository_id246649621
octolytics-dimension-repository_nwoflutterdata/flutter_data
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id246649621
octolytics-dimension-repository_network_root_nwoflutterdata/flutter_data
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/flutterdata/flutter_data/issues/296#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fflutterdata%2Fflutter_data%2Fissues%2F296
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fflutterdata%2Fflutter_data%2Fissues%2F296
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=flutterdata%2Fflutter_data
Reloadhttps://github.com/flutterdata/flutter_data/issues/296
Reloadhttps://github.com/flutterdata/flutter_data/issues/296
Reloadhttps://github.com/flutterdata/flutter_data/issues/296
flutterdatahttps://github.com/flutterdata
flutter_datahttps://github.com/flutterdata/flutter_data
Codehttps://github.com/flutterdata/flutter_data
Issues11 (11)https://github.com/flutterdata/flutter_data/issues
Pull requestshttps://github.com/flutterdata/flutter_data/pulls
Discussionshttps://github.com/flutterdata/flutter_data/discussions
Actionshttps://github.com/flutterdata/flutter_data/actions
Security and qualityhttps://github.com/flutterdata/flutter_data/security
Insightshttps://github.com/flutterdata/flutter_data/insights
https://github.com/flutterdata/flutter_data
New issuehttps://github.com/login?return_to=https://github.com/flutterdata/flutter_data/issues/296
New issuehttps://github.com/login?return_to=https://github.com/flutterdata/flutter_data/issues/296
Query Params Do Not Support Multiple Filters on the Same Key (e.g. created_at=gte...&created_at=lte...)https://github.com/flutterdata/flutter_data/issues/296#top
https://github.com/putheng
puthenghttps://github.com/putheng
on May 3, 2025https://github.com/flutterdata/flutter_data/issues/296#issue-3037148973
Sign up for freehttps://github.com/signup?return_to=https://github.com/flutterdata/flutter_data/issues/296
Sign in to commenthttps://github.com/login?return_to=https://github.com/flutterdata/flutter_data/issues/296
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.