Package: graphene-gae
A Google AppEngine integration library forGrapheneFree software: BSD licenseDocumentation:https://graphene_gae.readthedocs.org.Upgrade NotesIf you’re upgrading from an older version (pre 2.0 version)
please check out theGraphene Upgrade Guide.InstallationTo install Graphene-GAE on your AppEngine project, go to your
project folder and runthis command in your shell:pipinstallgraphene-gae-t./libsThis will install the library and its dependencies to thelibsfolder
under your projects root - so the dependencies get uploaded withyour GAE
project when you publish your app.Make sure thelibsfolder is in your python path by adding the following
to yourappengine_config.py:importsysforpathin['libs']:ifpathnotinsys.path:sys.path[0:0]=[path]ExamplesHere’s a simple GAE model:classArticle(ndb.Model):headline=ndb.StringProperty()summary=ndb.TextProperty()text=ndb.TextProperty()author_key=ndb.KeyProperty(kind='Author')created_at=ndb.DateTimeProperty(auto_now_add=True)updated_at=ndb.DateTimeProperty(auto_now=True)To create a GraphQL schema for it you simply have to write the following:importgraphenefromgraphene_gaeimportNdbObjectTypeclassArticleType(NdbObjectType):classMeta:model=ArticleclassQuery(graphene.ObjectType):articles=graphene.List(ArticleType)@graphene.resolve_only_argsdefresolve_articles(self):returnArticle.query()schema=graphene.Schema(query=QueryRoot)Then you can simply query the schema:To learn more check out the followingexamples:StarwarsContributingAfter cloning this repo, ensure dependencies are installed by running:makedepsmakeinstallMake sure tests and lint are running:maketestmakelintHistory1.0.7 (TBD)GraphQLHandler GET supoort ([PR #27](https://github.com/graphql-python/graphene-gae/pull/27))1.0.6 (2016-12-06)Fixed DeadlineExceededError import swo connections properly handle timeouts1.0.5 (2016-11-23)Improved behavior ofNdbConnectionFieldwhentransform_edgesalso filters out some edges ([PR #26](https://github.com/graphql-python/graphene-gae/pull/25))1.0.3 (2016-11-22)Addedtransform_edgestoNdbConnectionField([PR #25](https://github.com/graphql-python/graphene-gae/pull/25))1.0.2 (2016-10-20)Added_handle_graphql_errorshook to GraphQLHandler1.0.1 (2016-09-28)Added missing support for StructuredProperty1.0 (2016-09-26)Upgraded to Graphene 1.00.1.9 (2016-08-17)Each NdbObject now exposes anndbIdString field that maps to the entity’skey.id()Added ndb boolean argument to NdbKeyStringField so now when looking at KeyProperty we can fetch either global GraphQL id or the NDB internal id.0.1.8 (2016-08-16)Made connection_from_ndb_query resilient to random ndb timeouts0.1.7 (2016-06-14)BREAKING: Fixed behavior of KeyProperty to expose GraphQL Global IDs instead of internal ndb.Key values. ([PR #16](https://github.com/graphql-python/graphene-gae/pull/16))0.1.6 (2016-06-10)Changing development status to BetaAdded NdbNode.global_id_to_key [PR #15](https://github.com/graphql-python/graphene-gae/pull/15)0.1.5 (2016-06-08)Fixed behavior of ndb.KeyProperty ([PR #14](https://github.com/graphql-python/graphene-gae/pull/14))0.1.4 (2016-06-02)NdbConnectionField added arguments that can be used in quert:keys_only - to execute a keys only querybatch_size - to control the NDB query iteration batch sizepage_size - control the page sizes when paginating connection resultsAdded support for LocalStructuredProperty.Given a propertyndb.LocalStructuredType(Something)it will automatically
map to a Field(SomethingType) - SomethingType has to be part of the schema.Support forrepeatedandrequiredpropeties.0.1.3 (2016-05-27)Addedgraphene_gae.webapp2.GraphQLHandler- a basic HTTP Handler to process GraphQL requests0.1.1 (2016-05-25)Updated graphene dependency to latest 0.10.1 version.NdbConnection.from_list now gets context as parameter0.1.0 (2016-05-11)First release on PyPI.