We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we will use the query many times in this component so first we need to import things that we need :
1- import the lodash.flowright to compose all queries to the component import compose from 'lodash.flowright';
lodash.flowright
import compose from 'lodash.flowright';
2- import all queries that we need from the query file import {InitaialFilterQuery, FilterResultQuery } from '../queries';
import {InitaialFilterQuery, FilterResultQuery } from '../queries';
const {Loaction, Price, isRemote, type} = data ;
export default compose(graphql(FilterResultQuery, { options: props => { return { variables: { location : props.loaction, isRemote : props.isRemote, price : props.price, type : props.type, } } }, name:"FilterResultQuery" }), graphql(InitaialFilterQuery, {name: InitaialFilterQuery}))(BookDetails);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
we will use the query many times in this component so first we need to import things that we need :
1- import the
lodash.flowright
to compose all queries to the componentimport compose from 'lodash.flowright';
2- import all queries that we need from the query file
import {InitaialFilterQuery, FilterResultQuery } from '../queries';
replace the axios thing in the componentDidMount() with queryInitialFilter
const {Loaction, Price, isRemote, type} = data ;
The text was updated successfully, but these errors were encountered: