mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
52 lines
No EOL
821 B
JavaScript
52 lines
No EOL
821 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
|
|
__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
|
|
`
|
|
}; |