`idFromString()` specifically parses the output of `id.toString()`. It won't work with any string th

idFromString()
specifically parses the output of
id.toString()
. It won't work with any string that wasn't specifically created by stringifying an ID from the same namespace.
idFromName()
takes any string you want and returns a unique ID corresponding to it.
Was this page helpful?