Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Add sample url and retrieve authType from me query
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Feb 10, 2020
1 parent 03ff504 commit 652afa8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export const iOSExpoClientId = '<your iOSClientId for exp.host.exponent>';
export const androidExpoClientId =
'<your androidClientId for exp.host.exponent>';
export const GRAPHQL_URL = 'https://stage.hackatalk.dev/graphql';
export const ROOT_URL = 'https://stage.hackatalk.dev';
1 change: 1 addition & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { getDefaultConfig } = require('metro-config');

module.exports = (async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/sample.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ROOT_URL = 'http://localhost:3000/api';
import { ROOT_URL } from '../../config';

export const sample = async (
body: object,
Expand Down
1 change: 1 addition & 0 deletions src/graphql/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const MUTATION_SIGN_IN = gql`
nickname
verified
statusMessage
authType
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const QUERY_ME = gql`
name
statusMessage
verified
authType
}
}
`;

0 comments on commit 652afa8

Please sign in to comment.