has no method on #17
Labels
No labels
dependencies
javascript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quodatum/basex-node#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
have written a very basic query but when running I ge this error
sayth@:~/Projects$ node test2.js
/home/sayth/Projects/node_modules/basex/index.js:220
this.on("drain", function() {
^
TypeError: Object #
Hi,
Your code does not seems to specify a data source. I.e. there is no doc("..") or db open statement..
Could this be the problem?
Also it does not use callbacks, these are required when working with Node. To execute some xquery use
See https://github.com/apb2006/basex-node/blob/master/docs/commands.md#introduction for a callback example.
If you do this you will see the BaseX response
This is because your XQuery has no context. You need to specify the location of the data you want to query. I suggest you try to get what you want running in the BaseXGUI before trying it with this API.