mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
54 lines
875 B
JavaScript
54 lines
875 B
JavaScript
![]() |
import Telescope from 'meteor/nova:lib';
|
||
|
import Users from './collection.js';
|
||
|
|
||
|
Telescope.graphQL.addQuery(`
|
||
|
users: [User]
|
||
|
user(_id: String, slug: String): User
|
||
|
currentUser: User
|
||
|
`);
|
||
|
|
||
|
Users.graphQLQueries = {
|
||
|
single: `
|
||
|
_id
|
||
|
username
|
||
|
createdAt
|
||
|
isAdmin
|
||
|
telescope {
|
||
|
bio
|
||
|
commentCount
|
||
|
displayName
|
||
|
downvotedComments {
|
||
|
itemId
|
||
|
power
|
||
|
votedAt
|
||
|
}
|
||
|
downvotedPosts {
|
||
|
itemId
|
||
|
power
|
||
|
votedAt
|
||
|
}
|
||
|
email
|
||
|
emailHash
|
||
|
htmlBio
|
||
|
karma
|
||
|
postCount
|
||
|
slug
|
||
|
twitterUsername
|
||
|
upvotedComments {
|
||
|
itemId
|
||
|
power
|
||
|
votedAt
|
||
|
}
|
||
|
upvotedPosts {
|
||
|
itemId
|
||
|
power
|
||
|
votedAt
|
||
|
}
|
||
|
website
|
||
|
groups
|
||
|
notifications_users
|
||
|
notifications_posts
|
||
|
newsletter_subscribeToNewsletter
|
||
|
}
|
||
|
`
|
||
|
};
|