Skip to content

Call rpc function with multiple unnamed parameters? #3886

Answered by laurenceisla
nikmartin asked this question in Q&A
Discussion options

You must be logged in to vote
  1. How to call a function with multiple positional arguments?

This is not possible by design. PostgREST only allows functions with a single unnamed parameters to send raw data. Otherwise, you need to name all parameters to make it work.

  1. How to represent a geometry object in an http GET/POST request? In SQL, it would be 'POINT(x y)' to represent a POINT Geometry

You can use string representation to work with different data types, including PostGIS ones. There's a how-to in the docs that can help you.

Replies: 3 comments

Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nikmartin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants