Giter Site home page Giter Site logo

doctrine-graphql's People

Contributors

rahuljayaraman avatar shinderohitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

shinderohitt

doctrine-graphql's Issues

Allow wrapping getter code

Most of my current entities are used in a REST API. It's hard to push Authorization logic down to the domain without breaking services. Passing some sort of proxy object which wraps all getter methods might solve this.

Docs or code examples?

Hi,

Is there any example code around I can follow on how to use this package and map my Doctrine entities to a GraphQL endpoint?

I have an existing Silex application that uses doctrine entity manager to work with a single MySQL database with two tables/entities so far.

Found this other package which seems to do all I need to have a /graphql endpoint in my Silex app, but still not clear yet how to put the whole thing together within my existing code. Found this other conversation and I have the feeling that this package rahuljayaraman/doctrine-graphql can help me to create the GraphQL schema I need to use Youshido/silex-graphql in my Silex project.

Is this correct? If so, could you give me an example code on how can I build my GraphQL schema out of this doctrine entity using rahuljayaraman/doctrine-graphql?

// Set the doctrine entity manager.
$em = $this->app['orm.em'];
// Get orders repository/entity.
$orders = $em->getRepository( 'Vendor\Package\Entity\Orders' );

Thank you,

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.