Comments (6)
Hi @caiolul , thanks for reporting, this is a valid problem that we dont solve right now. From what I can see in the code, we've opted to support queries only with this format:
https://.../_QUERIES/<folder>/<query>?field=<value1>&field=<value2>
As is said in this article, the RFC 3986 talks that web servers could have both the previous cited implementation and field=val1,val2
working, but neither are mandatory. Although I believe that having both working is great for us, so we definately should have it implemented in the future in prestd.
Thank you for reporting this, I'll keep this open so we can track this fix.
from prest.
@arxdsilva I'm going to work on this, if you want to pair, let me know!
from prest.
@avelino @arxdsilva can you guys take a look? I'm working with @caiolul at Mais Retorno and we went through this issue together
from prest.
Something we need to fix after solving this issue (if it's a real issue) is documenting this function better on the docs. Our docs don't offer a very descriptive way of using this function.
from prest.
As I spoke to @arxdsilva, it's not actually a bug. To send multiple parameters to inFormat
function, you instantiate it with multiple calls of the same field on the URL.
An example:
I need to retrieve multiple hedge funds with IBOV and CDI as indexers, the query would be:
SELECT * FROM hedge_funds WHERE fund_benchmark in {{inFormat "benchmark_field" }}
And the URL to be called would be: /_QUERIES/your_awesome_query_folder/awesome_query?benchmark_field=IBOV&benchmark_field=CDI
from prest.
Solved!
from prest.
Related Issues (20)
- script in Custom Queries? HOT 4
- A Simpler Supabase-Type Front-End HOT 1
- roreleaser upload error HOT 1
- lint: error return value of `w.Write` is not checked (errcheck) HOT 1
- JWT Cors bug HOT 3
- How to inserted into jsonb field? HOT 6
- Fix code scanning alert – Database query built from user-controlled sources
- Cancel display flags help on Pg error in "migrate" HOT 1
- docker image that runs without root access
- Issue running prest binary HOT 5
- [BUG] prest crashes if user set a cache directory that does not exists in filesystem HOT 2
- semicolon at the end of custom query raise syntax issue and query fails HOT 1
- search in array column
- Add pagination object for every query and request HOT 1
- fix CLI versioning
- v2 routes - draft
- Unable to execute unit tests locally HOT 4
- How to set auth jwt token timeout ? HOT 4
- Cannot run included middleware HelloMiddlewareLoad
- document JWKS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prest.