You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is something changed in the way array types ([[String]]) are handled?
I noticed that in the silverstripe/silverstripe-nextjs your using a different implementation to determine the ancestry in the (Resolver::resolveStaticBuild() method)[https://github.com/silverstripe/silverstripe-nextjs/blob/db7b253217c0981a2b70203f26e0a90529ebfa4c/src/GraphQL/Resolver.php#L30] that uses a custom type TypeAncestry. Is that something that should be implemented here as well?
For context, i'm working on an sveltekit implementation where i would like to resolve a Page or Elemental template based on the ancestry. Currently i'm just directly falling back to Page when a template isn't found.
The text was updated successfully, but these errors were encountered:
I noticed that TypeAncestry always returns an array with one null item in it:
While the method (DataObjectHashExtension::getTypeAncestry()) that is producing the array is actually creating the following array:
When changing the type from
[[String]]
toString
and change the method so it returns the type directly it does return the actual type:returns:
Is something changed in the way array types (
[[String]]
) are handled?I noticed that in the
silverstripe/silverstripe-nextjs
your using a different implementation to determine the ancestry in the (Resolver::resolveStaticBuild() method)[https://github.com/silverstripe/silverstripe-nextjs/blob/db7b253217c0981a2b70203f26e0a90529ebfa4c/src/GraphQL/Resolver.php#L30] that uses a custom typeTypeAncestry
. Is that something that should be implemented here as well?For context, i'm working on an sveltekit implementation where i would like to resolve a Page or Elemental template based on the ancestry. Currently i'm just directly falling back to Page when a template isn't found.
The text was updated successfully, but these errors were encountered: