mirror of
https://github.com/graphql-python/graphene.git
synced 2025-09-21 11:22:33 +03:00
Merge branch 'master' into integrations-fastapi
This commit is contained in:
commit
5b8f3db52a
|
@ -136,6 +136,11 @@ If you want to learn even more, you can also check the following [examples](exam
|
||||||
- **Basic Schema**: [Starwars example](examples/starwars)
|
- **Basic Schema**: [Starwars example](examples/starwars)
|
||||||
- **Relay Schema**: [Starwars Relay example](examples/starwars_relay)
|
- **Relay Schema**: [Starwars Relay example](examples/starwars_relay)
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
Documentation and links to additional resources are available at
|
||||||
|
https://docs.graphene-python.org/en/latest/
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
After cloning this repo, create a [virtualenv](https://virtualenv.pypa.io/en/stable/) and ensure dependencies are installed by running:
|
After cloning this repo, create a [virtualenv](https://virtualenv.pypa.io/en/stable/) and ensure dependencies are installed by running:
|
||||||
|
@ -177,7 +182,7 @@ tox -e py36
|
||||||
|
|
||||||
Tox can only use whatever versions of python are installed on your system. When you create a pull request, Travis will also be running the same tests and report the results, so there is no need for potential contributors to try to install every single version of python on their own system ahead of time. We appreciate opening issues and pull requests to make graphene even more stable & useful!
|
Tox can only use whatever versions of python are installed on your system. When you create a pull request, Travis will also be running the same tests and report the results, so there is no need for potential contributors to try to install every single version of python on their own system ahead of time. We appreciate opening issues and pull requests to make graphene even more stable & useful!
|
||||||
|
|
||||||
### Documentation
|
### Building Documentation
|
||||||
|
|
||||||
The documentation is generated using the excellent [Sphinx](http://www.sphinx-doc.org/) and a custom theme.
|
The documentation is generated using the excellent [Sphinx](http://www.sphinx-doc.org/) and a custom theme.
|
||||||
|
|
||||||
|
|
|
@ -267,6 +267,12 @@ If you want to learn even more, you can also check the following
|
||||||
- **Relay Schema**: `Starwars Relay
|
- **Relay Schema**: `Starwars Relay
|
||||||
example <examples/starwars_relay>`__
|
example <examples/starwars_relay>`__
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Documentation and links to additional resources are available at
|
||||||
|
https://docs.graphene-python.org/en/latest/
|
||||||
|
|
||||||
Contributing
|
Contributing
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
@ -324,7 +330,7 @@ contributors to try to install every single version of python on their
|
||||||
own system ahead of time. We appreciate opening issues and pull requests
|
own system ahead of time. We appreciate opening issues and pull requests
|
||||||
to make graphene even more stable & useful!
|
to make graphene even more stable & useful!
|
||||||
|
|
||||||
Documentation
|
Building Documentation
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
The documentation is generated using the excellent
|
The documentation is generated using the excellent
|
||||||
|
|
|
@ -29,7 +29,7 @@ This middleware only continues evaluation if the ``field_name`` is not ``'user'`
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
class AuthorizationMiddleware(object):
|
class AuthorizationMiddleware(object):
|
||||||
def resolve(self, next, root, info, **args):
|
def resolve(next, root, info, **args):
|
||||||
if info.field_name == 'user':
|
if info.field_name == 'user':
|
||||||
return None
|
return None
|
||||||
return next(root, info, **args)
|
return next(root, info, **args)
|
||||||
|
|
|
@ -39,9 +39,8 @@ Graphene defines the following base Scalar Types:
|
||||||
``graphene.Int``
|
``graphene.Int``
|
||||||
|
|
||||||
Represents non-fractional signed whole numeric
|
Represents non-fractional signed whole numeric
|
||||||
values. Int can represent values between `-(2^53 - 1)` and `2^53 - 1` since
|
values. Int is a signed 32‐bit integer per the
|
||||||
represented in JSON as double-precision floating point numbers specified
|
`GraphQL spec <https://facebook.github.io/graphql/June2018/#sec-Int>`_
|
||||||
by `IEEE 754 <http://en.wikipedia.org/wiki/IEEE_floating_point>`_.
|
|
||||||
|
|
||||||
``graphene.Float``
|
``graphene.Float``
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user