Skip to content

How to use the intersect query ? #315

Answered by ujjwalguptaofficial
CHAWLU asked this question in Q&A
Discussion options

You must be logged in to vote

You just need to specify the query not results like this -

var query1=  {
    from: 'Products',
    where: {
        price: {
            '>': 10
        }
    }
};
var query2 = {
    from: 'Products',
    where: {
        price: {
            '>': 50
        }
    }
};
var results = await connection.intersect({
    queries:[query1,query2]    
})

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ujjwalguptaofficial
Comment options

@CHAWLU
Comment options

@ujjwalguptaofficial
Comment options

@CHAWLU
Comment options

@ujjwalguptaofficial
Comment options

Answer selected by ujjwalguptaofficial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants