Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forum example: how to use search operators #31

Closed
mrbarletta opened this issue May 1, 2016 · 5 comments
Closed

forum example: how to use search operators #31

mrbarletta opened this issue May 1, 2016 · 5 comments

Comments

@mrbarletta
Copy link

thanks for the kool project! looks primising.

I was wondering how to use the search operators (e.g. like givenName: '%partOfName%')

Do we have to extend the exposed methods? is that even possible?

thanks!

@calebmer
Copy link
Collaborator

calebmer commented May 1, 2016

I haven't thought of a good way to represent complex operators in the GraphQL type system. However, I am planning to finish support for calling PostgreSQL procedures soon which would allow you to write custom functions to do this. You can actually see the branch implementing this feature here where I currently have mutative procedures implemented.

Relevant parts from that branch include this new example procedure and this passing test showing off procedures that perform mutations.

@gilesbradshaw
Copy link

have you any thoughts about how the existing graphql schema produced by postgraphql could be extended to add aditional parameters?

@calebmer
Copy link
Collaborator

calebmer commented May 5, 2016

Not too many yet. After the procedure stuff gets implemented and we have a good story for authentication, I want to work on the node API side to allow people to extend their schema however they want.

@calebmer
Copy link
Collaborator

calebmer commented May 6, 2016

@mrbarletta check out version 1.3.0-beta.0 and #41 and tell me how that works for you 👍

@calebmer
Copy link
Collaborator

Procedure support is released in 1.3.0. I wrote this new article with your issue in mind 😉

If it's inadequate in explaining the new feature, please tell me. Also you can follow #47 where simple free-form filtering using conditions will be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants