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
Few ideas #33
Comments
Hi @crackcomm - I have not had a lot of time to go through all of these with much thought yet, but fully intend to. Thanks for the ideas! |
@crackcomm - I think some of these might already be in Ponzu, but undocumented.. others I'm not sure I fully understand and need some more information. Let me know what you think.
I could be mistaken about what you refer to as a 'slug', but there is an interface in the
Would this be used as a
I agree that there should be a good validation package made for Ponzu that would allow you to do something like the following in your content type, which would implement an interface with a func (a *Applicant) Validate(res http.ResponseWriter, req *http.Request) error {
requires := map[string]string{
"username": "exists|unique",
"email": "exists|unique|email",
"password": "exists|minLength:8",
"age": "exists|int|gte:18",
"birth_month": "exists|int|in:0-11",
}
return validator.Check(req, requires)
}
Using the interface-based approach above, I think this could be accomplished with another generator. Good idea. Would expand on my roadmap to write generators for API clients in JS, Obj-C/Swift, Java, PHP, etc..
Sorry, I'm not sure what this one means
Admin search is already present, but its limited to exact-matching text per content type. There is some discussion happening in #51, which would be great to get more ideas going.. maybe I don't fully understand what you mean though.
I have an
This is also something folks have been discussing a bit in the Gopher's #ponzu slack channel.. I wouldn't be the right person to accomplish this, but I agree it could be a nice feature.
Sorry, I'm not sure what this one means
I have some thoughts on this, and why we don't need it with HTTP/2 and PUSH_PROMISE frames... I think GraphQL is awesome, but when HTTP calls are even cheaper and keep the same TCP connection open, I think the need for fetching data in the GraphQL way is going to be obsolete, unless you are forced to use a SQL database and can't leverage HTTP/2 as much.
Totally unfamiliar with these, but would like to know how you want to use them. |
It is not just economy on http requests. This is the small part of what GraphQL about.
There is also this DB https://docs.dgraph.io/query-language/ which support GraphQL-like syntax out of the box. And this example of what nice tools you get out of the box with GraphQL https://github.com/graphql/graphiql. And more to come https://dev-blog.apollodata.com/new-features-in-graphql-batch-defer-stream-live-and-subscribe-7585d0c28b07 |
Closing this issue. No activity and old. Please reopen if need to. |
I've got few ideas, I'm not sure I will be able to work on them but I'll write them here.
--table-fields title,artist
)--search-fields title,artist
)I would love to hear your opinions on them, especially the last one.
The text was updated successfully, but these errors were encountered: