How to use the @pnp/sp-clientsvc.opQuery function in @pnp/sp-clientsvc

To help you get started, we’ve selected a few @pnp/sp-clientsvc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pnp / pnpjs / sp-taxonomy / src / termstores.ts View on Github external
const objectPaths = this._objectPaths.copy();
        const methodParent = objectPaths.lastIndex;

        const inputIndex = objectPaths.add(objConstructor("{1f849fb0-4fcb-4a54-9b01-9152b9e482d3}",
            // actions
            objectPath(),
            ...objectProperties(info),
        ));

        const params = MethodParams.build().objectPath(inputIndex);

        const methodIndex = objectPaths.add(method("GetChanges", params,
            // actions
            objectPath(),
            opQuery([], this.getSelects()),
        ));

        objectPaths.addChildRelationship(methodParent, methodIndex);

        return this.send(objectPaths);
    }
}
github pnp / pnpjs / packages / sp-taxonomy / src / termstores.ts View on Github external
const objectPaths = this._objectPaths.copy();
        const methodParent = objectPaths.lastIndex;

        const inputIndex = objectPaths.add(objConstructor("{1f849fb0-4fcb-4a54-9b01-9152b9e482d3}",
            // actions
            objectPath(),
            ...objectProperties(info),
        ));

        const params = MethodParams.build().objectPath(inputIndex);

        const methodIndex = objectPaths.add(method("GetChanges", params,
            // actions
            objectPath(),
            opQuery([], this.getSelects()),
        ));

        objectPaths.addChildRelationship(methodParent, methodIndex);

        return this.send(objectPaths);
    }
}

@pnp/sp-clientsvc

pnp - Provides core functionality to interact with the legacy client.svc SharePoint endpoint

MIT
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis

Similar packages