Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added proper export for Query class #337

Merged
merged 1 commit into from
Jan 7, 2022
Merged

Conversation

Meldiron
Copy link
Contributor

@Meldiron Meldiron commented Jan 7, 2022

Code:

const sdk = require("node-appwrite");
console.log(sdk.Query.equal("name", "Matej"));

Before this PR:

console.log(sdk.Query.equal("name", "Matej"));
                      ^

TypeError: sdk.Query.equal is not a function
    at Object.<anonymous> (/Users/meldiron/Desktop/delme/aw10del/app.js:2:23)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47

After this PR:

name.equal("Matej")

@TorstenDittmann TorstenDittmann merged commit 3542c6e into master Jan 7, 2022
@TorstenDittmann TorstenDittmann deleted the fix-nodejs-query branch January 7, 2022 12:55
@Meldiron Meldiron restored the fix-nodejs-query branch January 11, 2022 10:58
@lohanidamodar lohanidamodar deleted the fix-nodejs-query branch June 5, 2022 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants