Migrating GraphQL queries
Depending on the version from which you are upgrading, some upgrading of your GraphQL queries may be necessary.
- Migrating discontinued searchBy* queries
As from Tridion Docs 15, thesearchById,searchByField,searchByCriteria, andsearchByRawQueryqueries are discontinued in favor of a newsearchquery, so you must migrate any such queries, if you have not already done so. This topic explains how. - Migrating to new metadata and language queries
As from Tridion Docs 15, the dynamic metadata fields and dynamic language fields that use the "+" symbol are deprecated in favor of new field notations, so you are urged to convert any such queries, if you have not already done so. This topic explains how. - Migrating from typeless metadata field queries to typed metadata field queries
As from Tridion Docs 15, dynamic metadata fields can take atypefield, specifying the data type of the field. Because a Schema can have multiple metadata fields with the same name but a different type, specifying type in your queries is recommended. However, if you choose not to set thetypefield, its value is assumed to beANY, meaning it will match a field with the name you specify, regardless of its type.