Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-03 23:01:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3ed53b59a837d8ef5384e8c3c3260a2b22c20b28
3ed53b59
1 parent
4ffd9252
add graphql-tag
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
front/src/Apollo/ClientState.js
front/src/Apollo/ClientState.js
View file @
3ed53b5
import
gql
from
"graphql-tag"
;
const
clientQuery
=
gql
`
{
isLoggedIn @client
}
`
;
export
const
defaults
=
{
isLoggedIn
:
Boolean
(
localStorage
.
getItem
(
"token"
)
||
false
),
};
...
...
@@ -24,4 +32,7 @@ export const resolvers = {
return
null
;
},
},
Query
:
{
clientQuery
,
},
};
...
...
Please
register
or
login
to post a comment