rescribe-dev / rescribe

Code autocomplete
https://rescribe.dev
Other
3 stars 0 forks source link

design system for sorting results of queries (by fieldname, up or down, etc.) #134

Open jschmidtnj opened 4 years ago

jschmidtnj commented 4 years ago

this system should be easily extendable to all queries

jschmidtnj commented 4 years ago

there should be pagination of queries, with results that show how many results there are total.

jschmidtnj commented 4 years ago

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) {

    }
  }
}
jschmidtnj commented 4 years ago

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.