-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbakery.php
132 lines (112 loc) Β· 4.18 KB
/
bakery.php
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
return [
/*
|--------------------------------------------------------------------------
| Bakery Path
|--------------------------------------------------------------------------
|
| This configuration option determines the path where GraphQL will be
| accessible from. Setting this to null will disable the default
| exposure of routes.
|
*/
'path' => '/graphql',
/*
|--------------------------------------------------------------------------
| Bakery Domain
|--------------------------------------------------------------------------
|
| This configuration option determines the domain where GraphQL will be
| accessible from.
|
*/
'domain' => null,
/*
|--------------------------------------------------------------------------
| Bakery GraphiQL
|--------------------------------------------------------------------------
|
| This configuration option determines if GraphiQL should be enabled.
|
| https://github.com/graphql/graphiql
|
*/
'graphiql' => true,
/*
|--------------------------------------------------------------------------
| Bakery Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every Telescope route, giving you
| the chance to add your own middleware to this list or change any of
| the existing middleware. Or, you can simply stick with this list.
|
*/
'middleware' => [
],
/*
|--------------------------------------------------------------------------
| Bakery Controller
|--------------------------------------------------------------------------
|
| This configuration option determines the controller to be used for
| GraphQL requests.
|
*/
'controller' => '\Bakery\Http\Controllers\BakeryController@graphql',
/*
|--------------------------------------------------------------------------
| Bakery Schema
|--------------------------------------------------------------------------
|
| This configuration option determines the schema to be used for
| GraphQL requests.
|
*/
'schema' => \Bakery\Support\DefaultSchema::class,
/*
|--------------------------------------------------------------------------
| Bakery PostgreSQL Full-text Search Dictionary
|--------------------------------------------------------------------------
|
| This configuration option determines the dictionary to be used
| when performing full-text search in collection queries.
|
*/
'postgresDictionary' => 'simple',
'security' => [
/*
|--------------------------------------------------------------------------
| Bakery GraphQL Introspection
|--------------------------------------------------------------------------
|
| This configuration option determines if the GraphQL introspection
| query will be allowed. Introspection is a mechanism for fetching
| schema structure.
|
| http://webonyx.github.io/graphql-php/security/#disabling-introspection
|
*/
'disableIntrospection' => env('BAKERY_DISABLE_INTROSPECTION', false),
/*
|--------------------------------------------------------------------------
| Bakery Pagination Max Count
|--------------------------------------------------------------------------
|
| This configuration option determines the maximum amount of items that
| can be requested in a single page for collection queries.
|
*/
'paginationMaxCount' => env('BAKERY_PAGINATION_MAX_COUNT', 1000),
/*
|--------------------------------------------------------------------------
| Bakery Eager Loading Maximum Depth
|--------------------------------------------------------------------------
|
| This configuration option determines the maximum depth of the query
| that will allow eager relation loading.
|
*/
'eagerLoadingMaxDepth' => env('BAKERY_EAGER_LOADING_MAX_DEPTH', 5),
],
];