GithubHelp home page GithubHelp logo

graphql's Introduction


Resources for End-to-End typing with GraphQL and TypeScript


There is something informally called the "keying-in" operator that is very handy for accessing generated TypeScript types from your GraphQL schema.

// generated typescript response from schema
type APIResponse = {
  user: {
    userId: string
    friendList: {
      count: number
you need to the type of APIResponse.user.friendList but don't know it upfront
type FriendList = APIResponse['user']['friendList']

It looks kinda obvious but can be really handy.



graphql's People


sw-yx avatar


Ádám Jäger avatar vordla avatar Breno Cota avatar Farhan Asghar avatar James Wallace avatar Evgeniy Talko avatar Sam Huynh (he/him) avatar  avatar mohammad khamees avatar Baha aldeen zghayar avatar ahmad alfrijat  avatar Samer Alnajjar avatar Faten Samman avatar Afnan Damra avatar John Owen Nixon avatar Owen Boreham avatar  avatar Le Thanh Viet avatar Milton David avatar Dan McNeil avatar Azghour-Saad avatar Christopher Urquidi avatar Jonah avatar R. Fadhil avatar Sriram avatar Trey Botard avatar Eoghan O'Loughlin avatar EJ Mitchell avatar  avatar Marcelo H M Dias avatar hansfpc avatar Logan McAnsh avatar martin williams avatar Andrew Ross avatar Dean Lofts avatar Dirk H. Wolthuis avatar  avatar Yuri Uliam avatar zhangaz1 avatar  avatar Carlos Eduardo avatar Mehdi Hasan Khan avatar Atanas Atanasov avatar fuubit avatar Andrea Di Marco avatar Brandon Bayer avatar J avatar Jabarjung Sandhu avatar Nathan Houle avatar Daniel Waltz avatar Shimba, Koji avatar vaibhav avatar Cameron Jenkinson avatar abhishek.saware avatar Neha avatar Ferdy Budhidharma avatar Brie avatar Carlos Rufo avatar Glauber Castro avatar Omar Khatib avatar  avatar James W. Lane III avatar swyx avatar


James Cloos avatar Marcelo H M Dias avatar swyx avatar Carlos Rufo avatar  avatar

graphql's Issues

seeking maintainers

i know @swcarlosrj would be a great maintainer for this and @brieb too if she wants it. this is something i know very little about beyond using codegen to flow types down from backend to frontend in a monorepo.

no obligation to anyone of course. just tagging people who may be interested.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.