Cannot get draft items

javascript

#1

For some reason I cannot retrieve all products that are draft is this because I cam on the client and that request is restricted or am I doing something wrong here is my angular5 service

// get all products
getAllProducts(): Observable < MoltinProduct > {
    const request = this.moltin.Products.Filter({ eq: { status: 'draft' } })

    return from(request.All())
}

#2

Hi @joe

That’s right. To protect products that aren’t ready, you won’t be able to get draft products with implicit authentication.

I hope this helps :smile:


#3

Thanks I have now regained my sanity :rofl:


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.