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:54:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a4cecd5e894d9650397000552b7e6678257d1065
a4cecd5e
1 parent
61b607d2
remove clientQuery
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
front/src/Apollo/ClientState.js
front/src/Apollo/ClientState.js
View file @
a4cecd5
import
gql
from
"graphql-tag"
;
const
clientQuery
=
gql
`
{
isLoggedIn @client
}
`
;
export
const
defaults
=
{
isLoggedIn
:
Boolean
(
localStorage
.
getItem
(
"token"
)
||
false
),
};
...
...
@@ -33,6 +27,13 @@ export const resolvers = {
},
},
Query
:
{
clientQuery
,
checkLogIn
:
(
_
,
__
)
=>
{
const
query
=
gql
`
{
isLoggedIn @client
}
`
;
return
query
;
},
},
};
...
...
Please
register
or
login
to post a comment