Skip to content

Commit

Permalink
feat(device_info): added graphql query on js side
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddi committed Oct 24, 2018
1 parent f8f73ee commit 80c3bdc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions client/react-native/common/graphql/queries/DeviceInfos.js
@@ -0,0 +1,15 @@
import { fetchQuery, graphql } from 'relay-runtime'
import environment from '../../relay/environment'

const query = graphql`
query DeviceInfosQuery($t: Bool!) {
DeviceInfos(T: $t) {
infos {
key
value
}
}
}
`

export default fetchQuery(environment, query, { t: true })
1 change: 1 addition & 0 deletions client/react-native/common/graphql/queries/index.js
Expand Up @@ -2,3 +2,4 @@ export ConversationList from './ConversationList'
export ContactList from './ContactList'
export EventList from './EventList'
export Contact from './Contact'
export GetDeviceInfos from './DeviceInfos'

0 comments on commit 80c3bdc

Please sign in to comment.