Skip to content

Commit

Permalink
Merge pull request #75 from oslabs-beta/master
Browse files Browse the repository at this point in the history
Minor update to readme
  • Loading branch information
mweisker authored Feb 24, 2023
2 parents 6db553b + ce38005 commit 0e4c2ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ const App = () => {
## Making a Query

```javascript
import { useObsidian, BrowserCache } from 'https://deno.land/x/obsidian/clientMod.ts';
import { useObsidian } from 'https://deno.land/x/obsidian/clientMod.ts';

const MovieApp = () => {
const { query, cache, setCache } = useObsidian();
const { query } = useObsidian();
const [movies, setMovies] = (React as any).useState('');

const queryStr = `query {
Expand Down Expand Up @@ -124,10 +124,10 @@ const MovieApp = () => {
## Making a Mutation

```javascript
import { useObsidian, BrowserCache } from 'https://deno.land/x/obsidian/clientMod.ts';
import { useObsidian } from 'https://deno.land/x/obsidian/clientMod.ts';

const MovieApp = () => {
const { mutate, cache, setCache } = useObsidian();
const { mutate } = useObsidian();
const [movies, setMovies] = (React as any).useState('');

const queryStr = `mutation {
Expand Down

0 comments on commit 0e4c2ca

Please sign in to comment.