Code Monkey home page Code Monkey logo

dgraphql's Introduction

Grant Forrest

I'm constantly making things.

These days I enjoy just tinkering with systems, pushing around the abstractions, playing with different trade-offs and opinions. What if websites were local-only apps and the internet was just the delivery platform? Could you make an ECS with full TypeScript support? That kinda stuff.

I will always be in progress on some game and I will never finish one. But I do finish other projects sometimes, I put them on my website:

Please don't contact me for anything crypto/web3 related. Not interested. Let's grow the set of things that can't be transactionalized.

dgraphql's People

Contributors

a-type avatar gforrest-bw avatar

Watchers

 avatar  avatar

dgraphql's Issues

Potential: auto-select `func`

func really just seems like the primary filter. Perhaps we could make things easier by automatically using the first filter as the func unless the user requests a specific one.

Evaluate running multiple query blocks in parallel

Perhaps the queries could be broken down in a way that allows multiple sections of the final query to be run in parallel. I bet a clever use of storing variables could help run multiple edges as top-level query blocks...

Remove need for `typeName` required attribute

It's currently mandated that the user pass a typeName as part of the return of their resolver info function. This seems pretty unnecessary.

The library could be evolved to include a built-in sense of 'labeled' nodes, i.e. that certain nodes match certain defined GraphQL types. These nodes could automatically be managed by the library itself, but only after mutations are added.

Until then, users could define a predicate which determines the 'label' for each type just once during library initialization, instead of passing it every time.

More terse way to alias predicates

Aliasing predicates is a pain right now. You have to define a whole dgraphql query resolver just for one field. A more terse form would be welcome.

Figure out how to avoid reading the resolver tree

Probably my least favorite requirement so far. I'd rather not force the user to pass their resolvers back into dgraphql in order to understand which resolvers correspond to which fields in the schema.

Unfortunately, since Apollo at least wraps resolvers, I can't use the original plan of attaching function ids to the schema resolvers and reading them back at resolve time.

I don't have any good ideas for this one. It's a little nice-to-have.

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.