# buildDiscoInfoQueryStanza function

Stanza buildDiscoInfoQueryStanza(

1. JID entity,
2. String? node

)

## Implementation

    Stanza buildDiscoInfoQueryStanza(JID entity, String? node) {
      return Stanza.iq(
        to: entity.toString(),
        type: 'get',
        children: [
          XMLNode.xmlns(
            tag: 'query',
            xmlns: discoInfoXmlns,
            attributes: {
              if (node != null) 'node': node,
            },
          ),
        ],
      );
    }