Quantcast
Viewing all articles
Browse latest Browse all 4826

String as ID with RESTadapter

@bjerh wrote:

Hi ember devs Image may be NSFW.
Clik here to view.
:slight_smile:

I'm trying to use a guid-ish generated Id for some of my models. A given ID would be something like: "A7GEVNNEIF34GFE743EFDNJ432".

Fetching the data into the data store isn't an issue. The ID's (and the rest of the data) is correctly displayed. Later getting a specific item with peekRecord("pluralmodelname", id) returns an issue. I believe the adapter needs to be given an integer rather than a string.

Is there a known way to circumvent this problem? Possible by reopening the adapter and changing stuff...

Thanks

/Jakob

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles