search
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
chevron_right
Concepts
chevron_right
Types
chevron_right
Advanced
chevron_right
chevron_right
chevron_right
query
is class member of Wall, Guard, Shield and Controller. It is used to get the query string value.
e.g - Conside the url - abc.com/?userid=5&name=ujjwal
There are two variables in query string - userid
and name
. We can use query
to access those value.
export class DefaultController extends Controller {
@DefaultWorker()
async default() {
const userId = this.query.userid;
const name = this.query.name;
return textResult(`userId is ${userId} & name is ${name}`);
}
}

Created with by Ujjwal Gupta
Help fortjs Grow
fortjs is an open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.
Need Help
Dont worry, if something is not working for you. The whole community is here for you.
Community
Be a part of fortjs community and help other people in learning fortjs, using it in a best way and making fortjs better.