File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ You can write a simple wrapper for simplicity:
152
152
import { graphql } from ' react-apollo' ;
153
153
import { graphqlLodash } from ' graphql-lodash' ;
154
154
155
- export function qqlLodash (rawQuery , config ) {
155
+ export function gqlLodash (rawQuery , config ) {
156
156
const {query , transform } = graphqlLodash (rawQuery);
157
157
let origProps = (config && config .props ) || ((props ) => props);
158
158
@@ -165,10 +165,10 @@ export function qqlLodash(rawQuery, config) {
165
165
})(comp);
166
166
}
167
167
// then use as bellow
168
- export default qqlLodash (query)(Component);
168
+ export default gqlLodash (query)(Component);
169
169
` ` `
170
170
171
- Just replace ` graphql` with ` qqlLodash ` and you are ready to use lodash in your queries.
171
+ Just replace ` graphql` with ` gqlLodash ` and you are ready to use lodash in your queries.
172
172
173
173
## Usage on server side
174
174
You can’t perform that action at this time.
0 commit comments