Open jschmidtnj opened 4 years ago
there should be pagination of queries, with results that show how many results there are total.
there should be rate limiting (just like github graphql api). we can create nested resolvers using this: https://typegraphql.com/docs/resolvers.html#field-resolvers. We can do this for any nested object - project -> repository -> file, for example. I don't know what else but there should be other stuff. Maybe with users too (user -> payment method, etc.).
query {
viewer {
login
}
user(login:"asdf") {
avatarUrl(size: 3234) {
}
}
}
create types inheritance for items in graphql that need to be extended (i.e. pagination arguments). Don't need to necessarily use resolver inheritance as well - that may get messy. see https://typegraphql.com/docs/inheritance.html#types-inheritance.
this system should be easily extendable to all queries