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

add stored query update (PUT) method #189

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ After releasing, be sure to push to master, including the tags (so that the rele

## Version details

The current version of stardog.js has been tested against version 6.1.2 of Stardog. You are encouraged to use this library if you are using version 5 or greater of Stardog. However, there is very little code that is version specific in stardog.js. It is essentially just a convenience wrapper around `fetch`. It is very likely that many of the exposed methods will work on older versions of Stardog, but this has not been tested.
The current version of stardog.js has been tested against version 6.2.0 of Stardog. You are encouraged to use this library if you are using version 5 or greater of Stardog. However, there is very little code that is version specific in stardog.js. It is essentially just a convenience wrapper around `fetch`. It is very likely that many of the exposed methods will work on older versions of Stardog, but this has not been tested.

If you are using a really old version of Stardog (<= 3.0.0) you should stick with the legacy version of the library which is version 0.3.1.

Expand Down Expand Up @@ -1207,6 +1207,22 @@ Expects the following parameters:

Returns [`Promise<HTTP.Body>`](#body)

#### <a name="update">`query.update(conn, storedQuery, params, useUpdateMethod)`</a>

Updates a given stored query and creates it if the name does not refer to an existing stored query.

Expects the following parameters:

- conn ([`Connection`](#connection))

- storedQuery (`string`)

- params (`object`)

- useUpdateMethod (`boolean`)

Returns [`Promise<HTTP.Body>`](#body)

## <a name="graphql">graphql</a>

#### <a name="execute">`query.graphql.execute(conn, database, query, variables, params)`</a>
Expand Down
Loading