mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
28 lines
479 B
JavaScript
28 lines
479 B
JavaScript
import gql from 'graphql-tag'
|
|
import { userFragment, postFragment } from './Fragments'
|
|
|
|
export const findResourcesQuery = gql`
|
|
${userFragment}
|
|
${postFragment}
|
|
|
|
query($query: String!) {
|
|
findResources(query: $query, limit: 5) {
|
|
__typename
|
|
... on Post {
|
|
...post
|
|
commentsCount
|
|
shoutedCount
|
|
author {
|
|
...user
|
|
}
|
|
}
|
|
... on User {
|
|
...user
|
|
}
|
|
... on Tag {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
`
|