Skip to content

Invalid example code in documentation #11

@MBO

Description

@MBO

https://github.com/contentstack/contentstack-management-javascript/blob/master/jsdocs/Entry.html#L217

import * as contentstack from '@contentstack/management'
const client = contentstack.client()

client.stack({ api_key: 'api_key'}).contentType('content_type_uid').entry('uid').fetch()
.then((entry) => {
 entry.title = 'My New Entry'
 entry.description = 'Entry description'
 return Entry.update()
})
.then((entry) => console.log(entry))

The example is using Entry, which is not defined in this context. I guess it's supposed to be entry instead. It's repeated in few examples in that document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions