-
Notifications
You must be signed in to change notification settings - Fork 242
/
index.ts
69 lines (63 loc) 路 1.36 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import * as accounts from './accounts';
import * as books from './books';
import * as documents from './documents';
import * as inventory from './inventory';
import * as product from './product';
import * as reviews from './reviews';
import * as reviewsWithUpdate from './special-cases/reviewsWithUpdate';
import * as accountsWithoutTag from './special-cases/accountsWithoutTag';
import * as reviewsWithoutTag from './special-cases/reviewsWithoutTag';
import { DocumentNode } from 'graphql';
import { GraphQLResolverMap } from 'apollo-graphql';
export interface Fixture {
name: string;
url: string;
typeDefs: DocumentNode;
resolvers?: GraphQLResolverMap<any>
}
const fixtures: Fixture[] = [
accounts,
books,
documents,
inventory,
product,
reviews,
];
const fixturesWithUpdate = [
accounts,
books,
documents,
inventory,
product,
reviewsWithUpdate,
];
const fixturesWithoutTag = [
accountsWithoutTag,
books,
documents,
inventory,
product,
reviewsWithoutTag,
];
const fixtureNames = [
accounts.name,
product.name,
inventory.name,
reviews.name,
books.name,
documents.name,
];
export { superGraphWithInaccessible } from './special-cases/supergraphWithInaccessible';
export {
accounts,
books,
documents,
inventory,
product,
reviews,
reviewsWithUpdate,
fixtures,
fixturesWithUpdate,
fixturesWithoutTag,
fixtureNames,
};