-
Notifications
You must be signed in to change notification settings - Fork 122
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
Feature: Query String Building #39
Comments
I've looked through the On the Apollo docs page, it mentions a
I think this is outdated as I don't see anything in the code that would support this unless I'm missing it, but something similar for the query string would be nice.
This would automatically create a query string based on the queryParams and append it to the path. I think I would actually prefer this in the case of multiple @rest in the same query that may not use every param such as:
If I understand correctly, this would be the equivalent using
|
This was raised as an issue in the #apollo-link-rest Slack Channel: Currently, when you have a REST API query with multiple arguments, you end up repeating yourself, expressing the exported arguments in the URI:
/path/to/resource?arg1=:arg1&arg2=:arg2&arg3=:arg3…
-- Just like we built thebodyBuilder
for Mutations, maybe we should extend its use to implicitly build the query parameters?Not sure if this is a good generic way to build this API. For now it seems like a nice to have enhancement, but I don't know what pitfalls or problems it could cause in the API.
The text was updated successfully, but these errors were encountered: