{"repo":"Ecodev/graphql-doctrine","free":true,"listed":false,"github":"https://github.com/Ecodev/graphql-doctrine","clone":"git clone https://github.com/Ecodev/graphql-doctrine.git","description":"Automatic GraphQL types from Doctrine entities","language":"PHP","stars":101,"topics":["graphql","doctrine","doctrine-orm","graphql-php","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GraphQL Doctrine A library to declare GraphQL types from Doctrine entities, PHP type hinting, and attributes, and to be used with webonyx/graphql-php. It reads most information from type hints, complete some things from existing Doctrine attributes and allow further customizations with specialized attributes. It will then create ObjectType and InputObjectType instances with fields for all getter and setter respectively found on Doctrine entities. It will not build the entire schema. It is up to the user to use automated types, and other custom types, to define root queries. Quick start Install the library via composer: And start using it: Usage The public API is limited to the public methods on TypesInterface , Types 's constructor, and the attributes. Here is a quick overview of TypesInterface : - $types- get() to get custom types - $types- getOutput() to get an ObjectType to be used in queries - $types- getFilter() to get an InputObjectType to be used in queries - $types- getSorting() to get an InputObjectType to be used in queries - $types- getInput() to get an InputObjectType to be used in mutations (typically for creation) - $types- getPartialInput() to get an InputObjectType to be used in mutations (typically for update) - $types- getId() to get an EntityIDType which may be used to receive an object from database instead of a scalar - $types- has() to check whether a type exists - $types- createFilteredQueryBuilder() to be used in query resolvers Information priority To","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ecodev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ecodev/graphql-doctrine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}