Skip to content

Commit

Permalink
Use new API for injectable queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Oct 8, 2018
1 parent f5eb7e8 commit dd83217
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions client/src/state/files/readFilesQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,6 @@ import { fileInterface, file as fileFragment, folder as folderFragment } from 'l
import { hasFilters } from 'components/Search/Search';
import { graphqlTemplates} from 'lib/Injector';

// // GraphQL Query
// const query = gql`
// query ReadFiles($limit:Int!, $offset:Int!, $rootFilter: FileFilterInput,
// $childrenFilter: FileFilterInput, $sortBy:[ChildrenSortInputType]
// ) {
// readFiles(filter: $rootFilter) {
// pageInfo {
// totalCount
// }
// edges {
// node {
// ...FileInterfaceFields
// ...FileFields
// ...on Folder {
// children(limit:$limit, offset:$offset, filter: $childrenFilter, sortBy:$sortBy) {
// pageInfo {
// totalCount
// }
// edges {
// node {
// ...FileInterfaceFields
// ...FileFields
// ...FolderFields
// }
// }
// }
// parents {
// id
// title
// }
// }
// }
// }
// }
// }
// ${fileInterface}
// ${fileFragment}
// ${folderFragment}
// `;

const apolloConfig = {
options({ sectionConfig, folderId, fileId, query: params }) {
const filter = Object.assign({}, params.filter);
Expand Down

0 comments on commit dd83217

Please sign in to comment.