Eql query usage in watcher/siem detection rules

EQL queries are available in elasticsearch 7.8 and later but we are not clear about how EQL queries are use in watcher/Siem detection rules.missing the documentation about same also. can you please instruct me how to use it