Skip to content

Update Readme to include more example code#32

Closed
ahussain3 wants to merge 1 commit intographql-python:masterfrom
ahussain3:patch-1
Closed

Update Readme to include more example code#32
ahussain3 wants to merge 1 commit intographql-python:masterfrom
ahussain3:patch-1

Conversation

@ahussain3
Copy link

As discussed in [https://github.com//issues/29#issuecomment-384472839], it would be great if the readme included more example code to help people get started.

As discussed in [graphql-python#29 (comment)], it would be great if the readme included more example code to help people get started.
@ahussain3 ahussain3 mentioned this pull request Apr 27, 2018
@hm43
Copy link

hm43 commented Jun 18, 2018

Thank you, it works @ahussain3

Copy link

@clintonb clintonb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite helpful. I would love to see this merged, even if my comments are addressed in a later pull request.

client.execute(query)
```

To execute against a graphQL API. (We get the schema by using introspection).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GraphQL (capitalize the G).

from gql import gql, Client
from gql.transport.requests import RequestsHTTPTransport

_transport = RequestsHTTPTransport(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful to explain that this class comes from the requests library, and takes the various arguments (e.g. headers, auth).


To execute against a graphQL API. (We get the schema by using introspection).

```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding python after these backticks would make this easier to read. Same for line 67 below.

@joshenders
Copy link

Any update on getting this merged?

@jacoffey3
Copy link

I found this super helpful. I hope it gets merged soon!

@ahussain3
Copy link
Author

Sorry, I don't actually know what the process is for merging something in this codebase. If I need to do anything more, please let me know.

@Cito Cito closed this in #63 Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants