How to assign values to a parameter in a query that I will run on the editor?

n1ql

#1

Hello,
I have a simple query that I am running in the web editor for couchbase server and in the query I am using parametrized values, think of:

SELECT * FROM bucketName WHERE bucketName.firstName =$firstName

I would like to enter the query in the editor but add some kind of assignment to the variable, just like you can in SQL flavored languages like so:SET-SQL

Is that possible in CB?


#2

Click on Preferences on right lower side of Query editor and fill the Named parameters (click +) of popup, cc @eben .


#3

Thank YOU! :slight_smile: