2017-07-06 17:28:41 +00:00
|
|
|
import React from "react";
|
|
|
|
import { gql, graphql } from 'react-apollo';
|
|
|
|
|
|
|
|
export default graphql(gql`
|
|
|
|
query GetScoutData($scoutID:ID!){
|
|
|
|
getScout(id: $scoutID){
|
2017-07-06 22:56:16 +00:00
|
|
|
displayName,
|
|
|
|
advancementDeadline,
|
|
|
|
adventures,
|
|
|
|
acheivments,
|
2017-07-06 17:28:41 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-06 22:56:16 +00:00
|
|
|
`,{
|
|
|
|
options : ({scoutID}) => ({variables: {scoutID}}),
|
|
|
|
props: ({ ownProps, data }) => {
|
|
|
|
scoutID: ownProps.scoutID,
|
|
|
|
displayName: data.getScout.displayName,
|
|
|
|
completedAdventures: data.getScout.adventures,
|
|
|
|
completedAchievements: data.getScout.achievements,
|
|
|
|
advancementDeadline: data.getScout.advancementDeadline
|
|
|
|
});
|