Skip to content

Adding React GraphQL example#5

Closed
koladev32 wants to merge 1 commit intoremoteit:mainfrom
koladev32:main
Closed

Adding React GraphQL example#5
koladev32 wants to merge 1 commit intoremoteit:mainfrom
koladev32:main

Conversation

@koladev32
Copy link
Copy Markdown

  • Add React GraphQL example to code_samples

Copy link
Copy Markdown
Contributor

@bstrech bstrech left a comment

Choose a reason for hiding this comment

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

We need to update this example using the access key/secret method, which would then not need the login page/auth hash.

Copy link
Copy Markdown
Contributor

@bstrech bstrech left a comment

Choose a reason for hiding this comment

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

We should update the authentication method to use the request signing. Then you do not need the login page.

Copy link
Copy Markdown
Contributor

@bstrech bstrech left a comment

Choose a reason for hiding this comment

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

Change out react logos with remote.it logos. We can provide those.

import {fetcher} from "./axios";


const devicesQuery = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should rename the home to devices.jsx so that it is easier to find.

yarn start
```

By default the project will be running on http://localhost:3000
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add information about where they can see the graphQL query and results properly.

import useSWR from 'swr'
import {fetcher} from "./axios";


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Both devices query and events query should have examples of issuing a new request if the hasMore is true and incrementing the from variable.

`
}

const eventsQuery = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would also recommend that we move events information to its own events page.

@bstrech bstrech closed this Aug 8, 2022
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.

2 participants