-
Notifications
You must be signed in to change notification settings - Fork 821
expose livehtml autobuild in Makefile + Add API autodoc #971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jkimbo
merged 15 commits into
graphql-python:master
from
dvndrsn:expose-docs-commands-in-makefile
Jun 9, 2019
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7384614
expose livehtml autobuild in Makefile
dvndrsn 79f8470
add API documentation for schema
dvndrsn 882d18e
document graphene core API
dvndrsn 1184f07
fixes black lint
dvndrsn 07b87c5
Update graphene/types/union.py
dvndrsn f8a6aa2
Update graphene/types/argument.py
dvndrsn 2b01a8e
Update graphene/types/field.py
dvndrsn 0bd4d93
Update graphene/types/inputfield.py
dvndrsn e141e43
add note about non-functional `interfaces` meta argument in mutation
dvndrsn 67f6976
update with other virtual environment configuration
dvndrsn 17e57e7
pin autobuild
dvndrsn 42bfb37
format argument example code
dvndrsn e761d25
format enum input object and interface examples
dvndrsn 37d32de
format enum mutation union examples
dvndrsn 125ef51
revise documentation with imports, capitalization
dvndrsn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ __pycache__/ | |
# Distribution / packaging | ||
.Python | ||
env/ | ||
venv/ | ||
.venv/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
API Reference | ||
============= | ||
|
||
Schema | ||
------ | ||
|
||
.. autoclass:: graphene.types.schema.Schema | ||
:members: | ||
|
||
.. Uncomment sections / types as API documentation is fleshed out | ||
.. in each class | ||
|
||
Object types | ||
------------ | ||
|
||
.. autoclass:: graphene.ObjectType | ||
|
||
.. autoclass:: graphene.InputObjectType | ||
|
||
.. autoclass:: graphene.Mutation | ||
:members: | ||
|
||
Fields (Mounted Types) | ||
---------------------- | ||
|
||
.. autoclass:: graphene.Field | ||
|
||
.. autoclass:: graphene.Argument | ||
|
||
.. autoclass:: graphene.InputField | ||
|
||
Fields (Unmounted Types) | ||
------------------------ | ||
|
||
.. autoclass:: graphene.types.unmountedtype.UnmountedType | ||
|
||
GraphQL Scalars | ||
--------------- | ||
|
||
.. autoclass:: graphene.Int() | ||
|
||
.. autoclass:: graphene.Float() | ||
|
||
.. autoclass:: graphene.String() | ||
|
||
.. autoclass:: graphene.Boolean() | ||
|
||
.. autoclass:: graphene.ID() | ||
|
||
Graphene Scalars | ||
---------------- | ||
|
||
.. autoclass:: graphene.Date() | ||
|
||
.. autoclass:: graphene.DateTime() | ||
|
||
.. autoclass:: graphene.Time() | ||
|
||
.. autoclass:: graphene.Decimal() | ||
|
||
.. autoclass:: graphene.UUID() | ||
|
||
.. autoclass:: graphene.JSONString() | ||
|
||
Enum | ||
---- | ||
|
||
.. autoclass:: graphene.Enum() | ||
|
||
Structures | ||
---------- | ||
|
||
.. autoclass:: graphene.List | ||
|
||
.. autoclass:: graphene.NonNull | ||
|
||
Type Extension | ||
-------------- | ||
|
||
.. autoclass:: graphene.Interface() | ||
|
||
.. autoclass:: graphene.Union() | ||
|
||
Execution Metadata | ||
------------------ | ||
|
||
.. autoclass:: graphene.ResolveInfo | ||
|
||
.. autoclass:: graphene.Context | ||
|
||
.. autoclass:: graphql.execution.base.ExecutionResult | ||
|
||
.. Relay | ||
.. ----- | ||
|
||
.. .. autoclass:: graphene.Node | ||
|
||
.. .. autoclass:: graphene.GlobalID | ||
|
||
.. .. autoclass:: graphene.ClientIDMutation | ||
|
||
.. .. autoclass:: graphene.Connection | ||
|
||
.. .. autoclass:: graphene.ConnectionField | ||
|
||
.. .. autoclass:: graphene.PageInfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Required library | ||
Sphinx==1.5.3 | ||
sphinx-autobuild==0.7.1 | ||
# Docs template | ||
http://graphene-python.org/sphinx_graphene_theme.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
class Context(object): | ||
""" | ||
Context can be used to make a convenient container for attributes to provide | ||
for execution for resolvers of a GraphQL operation like a query. | ||
|
||
.. code:: python | ||
|
||
from graphene import Context | ||
|
||
context = Context(loaders=build_dataloaders(), request=my_web_request) | ||
schema.execute('{ hello(name: "world") }', context=context) | ||
|
||
def resolve_hello(parent, info, name): | ||
info.context.request # value set in Context | ||
info.context.loaders # value set in Context | ||
# ... | ||
|
||
args: | ||
**params (Dict[str, Any]): values to make available on Context instance as attributes. | ||
|
||
""" | ||
|
||
def __init__(self, **params): | ||
for key, value in params.items(): | ||
setattr(self, key, value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.