CINXE.COM
Enums and Custom Types | ObjectBox Swift
<!DOCTYPE html><html lang="en" class="scroll-pt-[76px] theme-clean no-tint sidebar-default sidebar-list-default"><head><meta charSet="utf-8"/><link rel="preconnect" href="https://api.gitbook.com"/><link rel="preconnect" href="https://static.gitbook.com"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" imageSrcSet="https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=1&quality=100&sign=e7bedd15&sv=2 32w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=2&quality=100&sign=e7bedd15&sv=2 64w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=3&quality=100&sign=e7bedd15&sv=2 96w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=4&quality=100&sign=e7bedd15&sv=2 128w" imageSizes="32px" fetchPriority="high"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/9f5478b23a2dbc0b.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/c689b5a6a1432db7.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/619939f8b811f942.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/95b358fb5c9305a3.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/09a5087aafb66ce5.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/faa0908d2237c5e3.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/9008e36b498d813c.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/2567c890e467e55b.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/79eda1c72751119a.css" data-precedence="next"/><link rel="stylesheet" href="https://static.gitbook.com/_next/static/css/4af9aafd612346fe.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0" href="https://static.gitbook.com/_next/static/chunks/webpack-ff813e9d416ce230.js"/><script src="https://static.gitbook.com/_next/static/chunks/1dd3208c-d78985df41c8a89e.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/4850-4b0a9d49477fe59a.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/main-app-ae4dd64edc524be6.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/app/global-error-185b8d6d9c549d21.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/9322-5f5740cd5fd0bdf9.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/app/middleware/(site)/layout-1a4e0bf6da1d58a4.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/2622-d4284e72be418b70.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/7609-5073804535dff38c.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/983-4fad0180b495256f.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/app/middleware/(site)/error-65349dd045e81a2f.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/2999-584f9b8ecc233405.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/7993-8ef7f7477490b7af.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/5890-3ab2501336ce1348.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/3625-453944d6ea4368cb.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/4055-7666845ca98fb1a4.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/5572-d068cc2bc8e73d12.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/8843-f0d01ada04c351a9.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/4168-597f57f1cfad2671.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><script src="https://static.gitbook.com/_next/static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js" async="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script><link rel="privacy-policy" href="https://objectbox.io/wordpress/wp-content/uploads/2022/08/Object-Box-Privacy-Notice.pdf"/><meta name="color-scheme" content="light"/><title>Enums and Custom Types | ObjectBox Swift</title><meta name="description" content="ObjectBox Swift supports enums and custom types: here's how."/><meta name="generator" content="GitBook (d222c11)"/><meta name="robots" content="index, follow"/><link rel="canonical" href="https://swift.objectbox.io/advanced/custom-types"/><meta property="og:title" content="Enums and Custom Types | ObjectBox Swift"/><meta property="og:description" content="ObjectBox Swift supports enums and custom types: here's how."/><meta property="og:image" content="https://swift.objectbox.io/~gitbook/ogimage/-Lj_jqJGRib432ozwbTQ"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="Enums and Custom Types | ObjectBox Swift"/><meta name="twitter:description" content="ObjectBox Swift supports enums and custom types: here's how."/><meta name="twitter:image" content="https://swift.objectbox.io/~gitbook/ogimage/-Lj_jqJGRib432ozwbTQ"/><link rel="icon" href="https://2249461369-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/spaces%2F-LR7sVOoZyL01-NkNVQJ%2Favatar.png?generation=1542042291053653&alt=media" type="image/png" media="(prefers-color-scheme: light)"/><link rel="icon" href="https://2249461369-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/spaces%2F-LR7sVOoZyL01-NkNVQJ%2Favatar.png?generation=1542042291053653&alt=media" type="image/png" media="(prefers-color-scheme: dark)"/><meta name="next-size-adjust"/><style> :root { --primary-1: 251 255 255; --contrast-primary-1: 29 29 29; --primary-2: 242 252 252; --contrast-primary-2: 29 29 29; --primary-3: 236 251 251; --contrast-primary-3: 29 29 29; --primary-4: 227 247 247; --contrast-primary-4: 29 29 29; --primary-5: 217 243 243; --contrast-primary-5: 29 29 29; --primary-6: 206 237 236; --contrast-primary-6: 29 29 29; --primary-7: 189 225 225; --contrast-primary-7: 29 29 29; --primary-8: 172 214 213; --contrast-primary-8: 29 29 29; --primary-9: 23 166 166; --contrast-primary-9: 255 255 255; --primary-10: 0 141 141; --contrast-primary-10: 255 255 255; --primary-11: 0 129 130; --contrast-primary-11: 255 255 255; --primary-12: 0 42 45; --contrast-primary-12: 255 255 255; --primary-original: 23 166 166; --contrast-primary-original: 255 255 255; --tint-1: 254 255 255; --contrast-tint-1: 29 29 29; --tint-2: 248 250 250; --contrast-tint-2: 29 29 29; --tint-3: 245 248 248; --contrast-tint-3: 29 29 29; --tint-4: 239 243 243; --contrast-tint-4: 29 29 29; --tint-5: 233 238 238; --contrast-tint-5: 29 29 29; --tint-6: 225 231 231; --contrast-tint-6: 29 29 29; --tint-7: 212 219 218; --contrast-tint-7: 29 29 29; --tint-8: 198 206 206; --contrast-tint-8: 29 29 29; --tint-9: 118 137 137; --contrast-tint-9: 255 255 255; --tint-10: 107 126 125; --contrast-tint-10: 255 255 255; --tint-11: 96 114 114; --contrast-tint-11: 255 255 255; --tint-12: 16 32 32; --contrast-tint-12: 255 255 255; --tint-original: 120 120 120; --contrast-tint-original: 255 255 255; --neutral-1: 255 255 255; --contrast-neutral-1: 29 29 29; --neutral-2: 250 250 250; --contrast-neutral-2: 29 29 29; --neutral-3: 247 247 247; --contrast-neutral-3: 29 29 29; --neutral-4: 242 242 242; --contrast-neutral-4: 29 29 29; --neutral-5: 237 237 237; --contrast-neutral-5: 29 29 29; --neutral-6: 229 229 229; --contrast-neutral-6: 29 29 29; --neutral-7: 217 217 217; --contrast-neutral-7: 29 29 29; --neutral-8: 204 204 204; --contrast-neutral-8: 29 29 29; --neutral-9: 120 120 120; --contrast-neutral-9: 255 255 255; --neutral-10: 121 121 121; --contrast-neutral-10: 255 255 255; --neutral-11: 110 110 110; --contrast-neutral-11: 255 255 255; --neutral-12: 29 29 29; --contrast-neutral-12: 255 255 255; --neutral-original: 120 120 120; --contrast-neutral-original: 255 255 255; --header-background: 23 166 166; --header-link: 255 255 255; } .dark { --primary-1: 26 30 30; --contrast-primary-1: 255 255 255; --primary-2: 29 36 36; --contrast-primary-2: 255 255 255; --primary-3: 35 47 46; --contrast-primary-3: 255 255 255; --primary-4: 35 51 51; --contrast-primary-4: 255 255 255; --primary-5: 37 58 58; --contrast-primary-5: 255 255 255; --primary-6: 36 63 63; --contrast-primary-6: 255 255 255; --primary-7: 42 74 74; --contrast-primary-7: 255 255 255; --primary-8: 47 86 85; --contrast-primary-8: 255 255 255; --primary-9: 23 166 166; --contrast-primary-9: 255 255 255; --primary-10: 19 165 165; --contrast-primary-10: 255 255 255; --primary-11: 91 214 214; --contrast-primary-11: 29 29 29; --primary-12: 159 255 255; --contrast-primary-12: 29 29 29; --primary-original: 23 166 166; --contrast-primary-original: 255 255 255; --tint-1: 29 29 29; --contrast-tint-1: 255 255 255; --tint-2: 34 35 35; --contrast-tint-2: 255 255 255; --tint-3: 43 44 44; --contrast-tint-3: 255 255 255; --tint-4: 46 48 48; --contrast-tint-4: 255 255 255; --tint-5: 52 54 54; --contrast-tint-5: 255 255 255; --tint-6: 56 58 58; --contrast-tint-6: 255 255 255; --tint-7: 65 68 68; --contrast-tint-7: 255 255 255; --tint-8: 75 79 79; --contrast-tint-8: 255 255 255; --tint-9: 126 135 135; --contrast-tint-9: 255 255 255; --tint-10: 137 146 146; --contrast-tint-10: 255 255 255; --tint-11: 185 194 194; --contrast-tint-11: 29 29 29; --tint-12: 247 255 255; --contrast-tint-12: 29 29 29; --tint-original: 120 120 120; --contrast-tint-original: 255 255 255; --neutral-1: 29 29 29; --contrast-neutral-1: 255 255 255; --neutral-2: 34 34 34; --contrast-neutral-2: 255 255 255; --neutral-3: 44 44 44; --contrast-neutral-3: 255 255 255; --neutral-4: 48 48 48; --contrast-neutral-4: 255 255 255; --neutral-5: 53 53 53; --contrast-neutral-5: 255 255 255; --neutral-6: 57 57 57; --contrast-neutral-6: 255 255 255; --neutral-7: 67 67 67; --contrast-neutral-7: 255 255 255; --neutral-8: 78 78 78; --contrast-neutral-8: 255 255 255; --neutral-9: 120 120 120; --contrast-neutral-9: 255 255 255; --neutral-10: 144 144 144; --contrast-neutral-10: 255 255 255; --neutral-11: 192 192 192; --contrast-neutral-11: 29 29 29; --neutral-12: 255 255 255; --contrast-neutral-12: 29 29 29; --neutral-original: 120 120 120; --contrast-neutral-original: 255 255 255; --header-background: 23 166 166; --header-link: 255 255 255; } </style><script src="https://static.gitbook.com/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule="" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0"></script></head><body class="__className_2f5617 __className_7d852e __variable_96046e bg-tint-base theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle theme-gradient:bg-gradient-primary theme-gradient-tint:bg-gradient-tint"><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">!function(){var d=document.documentElement,c=d.classList;c.remove('light','dark');d.style.colorScheme = 'light';c.add('light')}()</script><header id="site-header" class="flex flex-col h-[64px] sticky top-0 z-10 w-full flex-none shadow-[0px_1px_0px] shadow-tint-12/2 bg-tint-base/9 theme-muted:bg-tint-subtle/9 theme-bold-tint:bg-tint-subtle/9 theme-gradient:bg-gradient-primary theme-gradient-tint:bg-gradient-tint contrast-more:bg-tint-base text-sm backdrop-blur-lg"><div class="theme-bold:bg-header-background theme-bold:shadow-[0px_1px_0px] theme-bold:shadow-tint-12/2"><div class="scroll-nojump"><div class="gap-4 lg:gap-8 flex items-center justify-between w-full py-3 min-h-16 sm:h-16 px-4 sm:px-6 md:px-8 max-w-screen-2xl mx-auto page-full-width:max-w-full"><div class="flex max-w-full shrink min-w-0 gap-2 lg:gap-4 justify-start items-center"><button class="flex flex-row items-center py-1 px-2 rounded straight-corners:rounded-sm page-no-toc:hidden lg:hidden -ml-2 text-tint-strong theme-bold:text-header-link hover:bg-tint-hover theme-bold:hover:bg-header-link/3" aria-label="Open table of contents"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/bars.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-4 text-inherit"></svg></button><a class="group/headerlogo min-w-0 shrink flex items-center" href="/"><img alt="" style="aspect-ratio:1" fetchPriority="high" class="block dark:hidden object-contain size-8" src="https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=4&quality=100&sign=e7bedd15&sv=2" srcSet="https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=1&quality=100&sign=e7bedd15&sv=2 32w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=2&quality=100&sign=e7bedd15&sv=2 64w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=3&quality=100&sign=e7bedd15&sv=2 96w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=4&quality=100&sign=e7bedd15&sv=2 128w" sizes="32px" width="256" height="256"/><img alt="" style="aspect-ratio:1" loading="lazy" fetchPriority="high" class="hidden dark:block object-contain size-8" src="https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=4&quality=100&sign=e7bedd15&sv=2" srcSet="https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=1&quality=100&sign=e7bedd15&sv=2 32w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=2&quality=100&sign=e7bedd15&sv=2 64w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=3&quality=100&sign=e7bedd15&sv=2 96w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia&width=32&dpr=4&quality=100&sign=e7bedd15&sv=2 128w" sizes="32px" width="256" height="256"/><div class="text-pretty line-clamp-3 tracking-tight max-w-[18ch] lg:max-w-[24ch] font-semibold ms-3 text-base/tight lg:text-lg/tight text-tint-strong theme-bold:text-header-link">ObjectBox Swift</div></a></div><div class="headerLinks_containerHeaderlinks__GUgiv grow shrink flex justify-end items-center gap-x-4 lg:gap-x-6 min-w-9 z-20 lg:[&>.button+.button]:-ml-2"><a class="flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link" href="https://objectbox.io/"><span class="truncate min-w-0">objectbox.io</span></a><a class="flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link" href="https://objectbox.io/blog/"><span class="truncate min-w-0">Blog</span></a><a class="flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link" href="https://twitter.com/ObjectBox_io"><span class="truncate min-w-0">Twitter</span></a><a class="flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link" href="https://github.com/objectbox/objectbox-swift"><span class="truncate min-w-0">GitHub</span></a><div class="headerLinks_linkEllipsis__Z01IN items-center z-20"><div class="group/dropdown relative flex shrink min-w-0"><button type="button" class="text-tint hover:text-primary dark:hover:text-primary theme-bold:text-header-link theme-bold:hover:text-header-link/8 flex gap-1 items-center"><span class="sr-only">More</span><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/ellipsis.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-4"></svg><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/chevron-down.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon shrink-0 opacity-6 size-3 ms-1 transition-all group-hover/dropdown:opacity-11 group-focus-within/dropdown:rotate-180"></svg></button><div tabindex="-1" role="menu" aria-orientation="vertical" aria-labelledby=":S1:" class="w-52 max-h-80 flex absolute top-full left-0 z-20 origin-top-left invisible transition-opacity duration-1000 group-hover/dropdown:visible group-focus-within/dropdown:visible -translate-x-48 md:translate-x-0"><div class="mt-2 w-full bg-tint-base rounded-lg straight-corners:rounded-sm p-2 shadow-1xs overflow-auto ring-1 ring-tint-subtle focus:outline-none"><div class="flex flex-col gap-1"><a class="px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover" href="https://objectbox.io/">objectbox.io</a><a class="px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover" href="https://objectbox.io/blog/">Blog</a><a class="px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover" href="https://twitter.com/ObjectBox_io">Twitter</a><a class="px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover" href="https://github.com/objectbox/objectbox-swift">GitHub</a></div></div></div></div></div></div><div class="flex md:min-w-56 grow-0 shrink-0 justify-self-end"><!--$--><button type="button" aria-label="Search" class="flex flex-1 flex-row justify-center items-center w-full px-3 py-2 gap-2 bg-tint-base ring-1 ring-tint-12/2 shadow-sm shadow-tint-12/3 dark:shadow-none text-tint rounded-lg straight-corners:rounded-sm contrast-more:ring-tint-12 contrast-more:text-tint-strong transition-all hover:bg-tint-subtle hover:shadow-md hover:scale-102 hover:ring-tint-hover hover:text-tint-strong focus:shadow-md focus:scale-102 focus:ring-tint-hover focus:text-tint-strong contrast-more:hover:ring-2 contrast-more:hover:ring-tint-12 contrast-more:focus:ring-2 contrast-more:focus:ring-tint-12 active:shadow-sm active:scale-98 md:justify-start md:w-full theme-bold:bg-header-link/2 theme-bold:hover:bg-header-link/3 theme-bold:text-header-link/8 theme-bold:hover:text-header-link theme-bold:ring-header-link/4 theme-bold:hover:ring-header-link/5 theme-bold:[&_svg]:text-header-link/10 theme-bold:[&_.shortcut]:text-header-link/8 theme-bold:contrast-more:bg-header-background theme-bold:contrast-more:text-header-link theme-bold:contrast-more:ring-header-link theme-bold:contrast-more:hover:bg-header-background theme-bold:contrast-more:hover:ring-header-link theme-bold:contrast-more:focus:text-header-link theme-bold:contrast-more:focus:bg-header-background theme-bold:contrast-more:focus:ring-header-link theme-bold:shadow-none theme-bold:hover:shadow-none"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/magnifying-glass.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon text-tint-subtle shrink-0 size-4"></svg><div class="w-full hidden md:block text-left"><span class="flex-1">Search<!-- -->...</span></div><div class="shortcut hidden md:inline justify-end text-xs text-tint contrast-more:text-tint-strong whitespace-nowrap [font-feature-settings:"calt",_"case"]">Ctrl +<!-- --> K</div></button><!--/$--></div></div></div></div></header><div class="flex flex-col lg:flex-row px-4 sm:px-6 md:px-8 max-w-screen-2xl mx-auto page-full-width:max-w-full"><aside data-testid="table-of-contents" class="group page-no-toc:hidden grow-0 shrink-0 basis-full lg:basis-72 relative z-[1] lg:sticky lg:top-0 lg:h-screen site-header:lg:top-16 site-header:lg:h-[calc(100vh_-_4rem)] site-header-sections:lg:top-[6.75rem] site-header-sections:lg:h-[calc(100vh_-_6.75rem)] pt-6 pb-4 sidebar-filled:lg:pr-6 hidden navigation-open:flex lg:flex flex-col gap-4 navigation-open:border-b border-tint-subtle"><div class="lg:-ms-5 overflow-hidden relative flex flex-col flex-grow sidebar-filled:bg-tint-subtle theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle [html.sidebar-filled.theme-muted_&]:bg-tint-base [html.sidebar-filled.theme-bold.tint_&]:bg-tint-base sidebar-filled:rounded-xl straight-corners:rounded-none"><div class="px-5 *:my-4"></div><div data-testid="toc-scroll-container" class="flex flex-grow flex-col p-2 lg:pb-20 overflow-y-auto lg:gutter-stable [&::-webkit-scrollbar]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-transparent group-hover:[&::-webkit-scrollbar]:bg-tint-subtle group-hover:[&::-webkit-scrollbar-thumb]:bg-tint-7 group-hover:[&::-webkit-scrollbar-thumb:hover]:bg-tint-8"><ul class="flex flex-col gap-y-0.5 sidebar-list-line:border-l border-tint-subtle"><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/">ObjectBox Swift Database Docs</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/install">Install ObjectBox Swift</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/getting-started">Get Started with ObjectBox Swift</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/entity-annotations">Entity Annotations in ObjectBox</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/queries">Queries</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/relations">Relations</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/transactions">Transactions</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/faq">ObjectBox Swift FAQ</a></li><li class="flex flex-col"><a class="flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong" href="https://objectbox.io/docfiles/swift/current/">Swift API Docs<svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/arrow-up-right-from-square.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [&>path]:transition-[opacity] [&>path]:[opacity:0.40] group-hover:[&>path]:[opacity:1]"></svg></a></li><li class="flex flex-col group/page-group-item"><div class="flex items-center gap-3 px-3 z-[1] sticky -top-5 pt-6 group-first/page-group-item:-mt-5 pb-3 -mb-1.5 text-xs tracking-wide font-semibold uppercase [mask-image:linear-gradient(rgba(0,0,0,1)_70%,rgba(0,0,0,0))] bg-tint-base sidebar-filled:bg-tint-subtle theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle [html.sidebar-filled.theme-muted_&]:bg-tint-base [html.sidebar-filled.theme-bold.tint_&]:bg-tint-base [html.sidebar-default.theme-gradient_&]:bg-gradient-primary [html.sidebar-default.theme-gradient.tint_&]:bg-gradient-tint">Advanced</div><ul class="flex flex-col gap-y-0.5"><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/advanced/macos">The Sandbox on macOS</a></li><li class="flex flex-col"><a aria-current="page" class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm text-balance hover:contrast-more:ring-1 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none font-semibold sidebar-list-line:before:w-0.5 before:bg-primary-solid text-primary-subtle sidebar-list-pill:bg-primary [html.sidebar-list-pill.theme-muted_&]:bg-primary-hover [html.sidebar-list-pill.theme-bold.tint_&]:bg-primary-hover [html.sidebar-filled.sidebar-list-pill.theme-muted_&]:bg-primary [html.sidebar-filled.sidebar-list-pill.theme-bold.tint_&]:bg-primary hover:bg-primary-hover hover:text-primary hover:before:bg-primary-solid-hover sidebar-list-pill:hover:bg-primary-hover contrast-more:text-primary contrast-more:hover:text-primary-strong contrast-more:bg-primary contrast-more:ring-1 contrast-more:ring-primary contrast-more:hover:ring-primary-hover" href="/advanced/custom-types">Enums and Custom Types</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/advanced/data-model-updates">Data Model Updates</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/advanced/meta-model-ids-and-uids">Meta Model, IDs and UIDs</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/advanced/manual-installation">Manual Installation</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/advanced/setup-script">The setup.rb Script</a></li><li class="flex flex-col"><a class="group/toclink relative transition-colors flex flex-row justify-between p-1.5 pl-3 rounded-md straight-corners:rounded-none text-sm font-normal text-balance text-tint-strong/7 hover:text-tint-strong hover:bg-tint-hover contrast-more:text-tint-strong hover:contrast-more:text-tint-strong hover:contrast-more:ring-1 hover:contrast-more:ring-tint-12 before:contents[] before:absolute before:inset-y-0 before:-left-px [&+div_a]:pl-5 sidebar-list-line:before:w-px sidebar-list-default:[&+div_a]:before:w-px sidebar-list-default:[&+div_a]:rounded-l-none sidebar-list-line:rounded-l-none" href="/advanced/sourcery">Customizing Code Generation</a></li></ul></li><li class="flex flex-col"><a class="flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong" href="https://objectbox.io/sync/">Data Sync<svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/arrow-up-right-from-square.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [&>path]:transition-[opacity] [&>path]:[opacity:0.40] group-hover:[&>path]:[opacity:1]"></svg></a></li><li class="flex flex-col"><a class="flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong" href="https://docs.objectbox.io/">Android Database<svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/arrow-up-right-from-square.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [&>path]:transition-[opacity] [&>path]:[opacity:0.40] group-hover:[&>path]:[opacity:1]"></svg></a></li><li class="flex flex-col"><a class="flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong" href="https://pub.dev/packages/objectbox">Flutter Database<svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/arrow-up-right-from-square.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [&>path]:transition-[opacity] [&>path]:[opacity:0.40] group-hover:[&>path]:[opacity:1]"></svg></a></li></ul><div class="relative z-[2] lg:absolute mt-6 left-0 right-2 bottom-0 pointer-events-none sidebar-filled:pl-2 sidebar-filled:pb-2 bg-tint-base sidebar-filled:bg-tint-subtle theme-muted:bg-tint-subtle [html.sidebar-filled.theme-muted_&]:bg-tint-base [html.sidebar-filled.theme-bold.tint_&]:bg-tint-base before:hidden lg:before:block before:content-[""] before:absolute before:inset-x-0 before:bottom-full before:h-8 before:bg-gradient-to-b before:from-transparent before:to-tint-base sidebar-filled:before:to-tint-subtle theme-muted:before:to-tint-subtle theme-bold-tint:before:to-tint-subtle [html.sidebar-filled.theme-muted_&]:before:to-tint-base [html.sidebar-filled.theme-bold.tint_&]:before:to-tint-base"><a target="_blank" class="text-sm font-semibold text-tint flex flex-row items-center px-5 py-4 sidebar-filled:px-3 rounded-lg straight-corners:rounded-none hover:bg-tint hover:text-tint-strong ring-2 lg:ring-1 ring-inset ring-tint-subtle transition-colors pointer-events-auto" href="https://www.gitbook.com/?utm_source=content&utm_medium=trademark&utm_campaign=-LR7sVOoZyL01-NkNVQJ"><svg style="mask-image:url(https://static.gitbook.com/~gitbook/static/icons/svgs/custom-icons/gitbook.svg?v=2);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-5 mr-3"></svg>Powered by GitBook</a></div></div></div></aside><div class="flex-1 flex flex-col"><!--$--><div class="flex flex-row-reverse justify-end grow"><aside class="group/aside hidden xl:flex flex-col basis-56 grow-0 shrink-0 break-anywhere text-tint contrast-more:text-tint-strong sticky lg:top-0 lg:max-h-screen site-header:lg:top-16 site-header:lg:max-h-[calc(100vh_-_4rem)] site-header-sections:lg:top-[6.75rem] site-header-sections:lg:max-h-[calc(100vh_-_6.75rem)] page-api-block:xl:max-2xl:z-10 page-api-block:xl:max-2xl:fixed page-api-block:xl:max-2xl:right-8 page-api-block:xl:max-2xl:w-56 page-api-block:xl:max-2xl:bg-tint/9 page-api-block:xl:max-2xl:contrast-more:bg-tint page-api-block:xl:max-2xl:backdrop-blur-lg page-api-block:xl:max-2xl:border page-api-block:xl:max-2xl:border-tint page-api-block:xl:max-2xl:hover:shadow-lg page-api-block:xl:max-2xl:hover:shadow-tint-12/1 page-api-block:xl:max-2xl:dark:hover:shadow-tint-1/1 page-api-block:xl:max-2xl:rounded-md page-api-block:xl:max-2xl:h-auto page-api-block:xl:max-2xl:my-8 page-api-block:p-2"><div class="hidden page-api-block:xl:max-2xl:flex text-xs tracking-wide font-semibold uppercase flex-row items-center gap-2"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/block-quote.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-3"></svg>On this page<svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/chevron-down.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-3 opacity-6 ml-auto page-api-block:xl:max-2xl:group-hover/aside:hidden"></svg></div><div class="overflow-y-auto overflow-x-visible flex flex-col shrink pb-12 sticky lg:top:0 site-header:lg:top-16 site-header-sections:lg:top-[6.75rem] gap-6 pt-8 page-api-block:xl:max-2xl:py-0 page-api-block:xl:max-2xl:hidden page-api-block:xl:max-2xl:group-hover/aside:flex"><!--$?--><template id="B:0"></template><!--/$--><div class="flex flex-col gap-3 sidebar-list-default:px-3 border-t first:border-none border-tint-subtle py-4 first:pt-0 page-api-block:xl:max-2xl:px-3 empty:hidden"><!--$--><div class="flex flex-col gap-3 text-sm mt-2"><div class="flex flex-wrap items-center gap-2"><p>Was this helpful?</p><div class="bg-tint-base border border-tint-subtle contrast-more:border-tint-12 rounded-full"><div class="flex"><button class="p-2 hover:bg-primary-hover hover:text-primary-strong first:pl-2.5 last:pr-2.5 first:rounded-l-full last:rounded-r-full disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit contrast-more:hover:ring-1 ring-tint disabled:opacity-7 disabled:contrast-more:ring-0" type="button" aria-label="No" title="No"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="currentColor" fill-opacity="0.2"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.66782 13.3737C4.87421 13.5572 5.19025 13.5386 5.3737 13.3322C7.30371 11.1609 10.6963 11.1609 12.6263 13.3322C12.8098 13.5386 13.1258 13.5572 13.3322 13.3737C13.5386 13.1902 13.5572 12.8742 13.3737 12.6678C11.0459 10.049 6.9541 10.049 4.6263 12.6678C4.44284 12.8742 4.46143 13.1902 4.66782 13.3737ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z" fill="currentColor"></path></svg></button><button class="p-2 hover:bg-primary-hover hover:text-primary-strong first:pl-2.5 last:pr-2.5 first:rounded-l-full last:rounded-r-full disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit contrast-more:hover:ring-1 ring-tint disabled:opacity-7 disabled:contrast-more:ring-0" type="button" aria-label="Not sure" title="Not sure"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="currentColor" fill-opacity="0.2"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.5 12C4.5 11.7239 4.72386 11.5 5 11.5H13C13.2761 11.5 13.5 11.7239 13.5 12C13.5 12.2761 13.2761 12.5 13 12.5H5C4.72386 12.5 4.5 12.2761 4.5 12ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z" fill="currentColor"></path></svg></button><button class="p-2 hover:bg-primary-hover hover:text-primary-strong first:pl-2.5 last:pr-2.5 first:rounded-l-full last:rounded-r-full disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit contrast-more:hover:ring-1 ring-tint disabled:opacity-7 disabled:contrast-more:ring-0" type="button" aria-label="Yes, it was!" title="Yes, it was!"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="currentColor" fill-opacity="0.2"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.66782 11.6263C4.87421 11.4428 5.19025 11.4614 5.3737 11.6678C7.30371 13.8391 10.6963 13.8391 12.6263 11.6678C12.8098 11.4614 13.1258 11.4428 13.3322 11.6263C13.5386 11.8098 13.5572 12.1258 13.3737 12.3322C11.0459 14.951 6.9541 14.951 4.6263 12.3322C4.44284 12.1258 4.46143 11.8098 4.66782 11.6263ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z" fill="currentColor"></path></svg></button></div></div></div></div><!--/$--><div><a href="/~gitbook/pdf?page=-Lj_jqJGRib432ozwbTQ&only=yes" class="flex flex-row items-center text-sm hover:text-tint-strong py-2"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/file-pdf.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-4 mr-1.5"></svg>Export as PDF</a></div></div></div><div class="pb-4 sticky bottom-0 bg-tint-base theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle theme-gradient:bg-gradient-primary theme-gradient-tint:bg-gradient-tint z-10 mt-auto flex flex-col page-api-block:xl:max-2xl:pb-0 page-api-block:xl:max-2xl:hidden page-api-block:xl:max-2xl:group-hover/aside:flex page-api-block:xl:max-2xl:bg-transparent"><div class="" data-visual-test="removed"></div></div></aside><main class="flex-1 relative py-8 lg:px-12 break-anywhere page-api-block:xl:max-2xl:pr-0 page-api-block:max-w-[1654px] page-api-block:mx-auto"><header class="max-w-3xl mx-auto mb-6 space-y-3 page-api-block:ml-0"><nav><ol class="flex flex-wrap items-center gap-2"><li><a class="underline-offset-2 decoration-primary/6 text-primary-subtle hover:text-primary contrast-more:text-primary contrast-more:hover:text-primary-strong transition-colors no-underline hover:underline text-xs tracking-wide font-semibold uppercase flex items-center gap-1.5 contrast-more:underline contrast-more:decoration-current" href="/advanced">Advanced</a></li></ol></nav><h1 class="text-4xl font-bold flex items-center gap-4">Enums and Custom Types</h1><p class="text-lg text-tint">ObjectBox Swift supports enums and custom types: here's how.</p></header><!--$--><div class="[&>*+*]:mt-5 grid whitespace-pre-wrap"><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">Custom types allow entities to have properties of any type. This is based on mapping custom classes to built-in types. ObjectBox recognizes the following built-in (Swift) types:</p><div class="group/codeblock grid grid-flow-col w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="flex items-center justify-start [grid-area:1/1] text-sm gap-2"></div><button class="group-hover/codeblock:opacity-[1] transition-opacity duration-75 opacity-0 text-xs [grid-area:2/1] z-[2] justify-self-end backdrop-blur-md leading-none self-start ring-1 ring-tint text-tint bg-transparent rounded-md mr-2 mt-2 p-1 hover:ring-tint-hover print:hidden">Copy</button><pre class="[grid-area:2/1] relative overflow-auto bg-tint theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll rounded-md straight-corners:rounded-sm"><code id=":Rkd9uu8qfkvfa:" class="min-w-full inline-grid grid-cols-[auto_1fr] p-2 [count-reset:line]"><span class="highlight-line"><span class="highlight-line-content">Int8, UInt8<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">Int16, UInt16<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">Int32, UInt32<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">Int64, Int, UInt64, UInt<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">Float, Double<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">Data, [UInt8]<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">String<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">Date</span></span></code></pre></div><h2 id="enums" class="text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]"><a href="#enums" aria-label="Direct link to heading" class="inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/hashtag.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4"></svg></a></div><div class="grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]">Enums</div></h2><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">ObjectBox has built-in support for <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">RawRepresentable</code> enums. All that is needed is an annotation to tell ObjectBox to convert an enum:</p><div class="group/codeblock grid grid-flow-col w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="flex items-center justify-start [grid-area:1/1] text-sm gap-2"></div><button class="group-hover/codeblock:opacity-[1] transition-opacity duration-75 opacity-0 text-xs [grid-area:2/1] z-[2] justify-self-end backdrop-blur-md leading-none self-start ring-1 ring-tint text-tint bg-transparent rounded-md mr-2 mt-2 p-1 hover:ring-tint-hover print:hidden">Copy</button><pre class="[grid-area:2/1] relative overflow-auto bg-tint theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll rounded-md straight-corners:rounded-sm"><code id=":R1cd9uu8qfkvfa:" class="min-w-full inline-grid grid-cols-[auto_1fr] p-2 [count-reset:line]"><span class="highlight-line"><span class="highlight-line-content">enum TestEnum: Int {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case unknown = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case first = 100<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case second = 200<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case third = 300<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> </span></span><span class="highlight-line"><span class="highlight-line-content">class EnumEntity: Entity {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var id: Id = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> // objectbox: convert = { "default": ".unknown" }<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var custom: TestEnum<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}</span></span></code></pre></div><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">Specify a default value to use when the value in the database is missing or invalid as the <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">default</code> argument to the <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">// objectbox: convert</code> annotation.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">A database can have a missing value even for non-optional fields if you add a property to your entity and then open a database that was written by an older version of your app that did not have that field yet. A database may contain an invalid value if an older version of your app opens a file created by a newer version of your app that has added a new case to this enum.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">When persisting enums, there are a couple of best practices:</p><!--/$--><!--$--><ul class="space-y-2 w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><!--$--><li class="leading-normal flex items-start"><div class="text-base leading-normal flex items-center justify-center mr-1 min-h-[1lh] min-w-6 text-tint"><div class="before:font-var before:content-[--pseudoBefore--content]" style="--pseudoBefore--content:'•';--font-family:Arial;font-size:min(1.5em, 24px);line-height:1"></div></div><div class="space-y-2 flex flex-col flex-1"><!--$--><p class="w-full decoration-primary/6 max-w-3xl min-h-[1lh] flip-heading-hash [&:is(h2)>div]:mt-0 [&:is(h3)>div]:mt-0 [&:is(h4)>div]:mt-0 mx-0"><strong class="font-bold">Always assign explicit rawValues to each enum case:</strong> Implicitly-assigned <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">rawValue</code>s are unstable, and can easily change the next time you edit your enum definitions.</p><!--/$--></div></li><!--/$--><!--$--><li class="leading-normal flex items-start"><div class="text-base leading-normal flex items-center justify-center mr-1 min-h-[1lh] min-w-6 text-tint"><div class="before:font-var before:content-[--pseudoBefore--content]" style="--pseudoBefore--content:'•';--font-family:Arial;font-size:min(1.5em, 24px);line-height:1"></div></div><div class="space-y-2 flex flex-col flex-1"><!--$--><p class="w-full decoration-primary/6 max-w-3xl min-h-[1lh] flip-heading-hash [&:is(h2)>div]:mt-0 [&:is(h3)>div]:mt-0 [&:is(h4)>div]:mt-0 mx-0"><strong class="font-bold">Prepare for the unknown:</strong> Define an <i class="font-italic">unknown</i> enum value and specify it as the default. It can serve to handle missing or unknown values. This will allow you to gracefully handle cases like an old enum value getting removed without having to constantly unwrap optionals.</p><!--/$--></div></li><!--/$--></ul><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">You can leave away the <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">"default"</code> annotation if your property is an optional. In that case <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">nil</code> will be the automatic default. </p><!--/$--><!--$--><h2 id="enums-in-queries" class="text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]"><a href="#enums-in-queries" aria-label="Direct link to heading" class="inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/hashtag.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4"></svg></a></div><div class="grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]">Enums in queries</div></h2><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">QueryBuilder</code> is unaware of enums. You have to <strong class="font-bold">use the enum's rawValue for queries</strong>.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">So for the <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">EnumEntity</code> example above you would get users with the <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">custom</code> property of <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">second</code> with the query condition <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">box.query { User.role == TestEnum.second.rawValue }</code>.</p><!--/$--><!--$--><h2 id="custom-property-converters" class="text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]"><a href="#custom-property-converters" aria-label="Direct link to heading" class="inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/hashtag.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4"></svg></a></div><div class="grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]">Custom Property Converters</div></h2><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">To add support for a custom type, you can map properties to one of the built-in types using an <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">// objectbox: convert</code> annotation. You also need to provide a class to serve as a property converter.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">For example, you could define a color in your entity using a custom <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">Color</code> class and map it to a <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">String</code>. </p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">Here is an example mapping an <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">enum</code> to an <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">Int</code> manually:</p><!--/$--><!--$--><div class="group/codeblock grid grid-flow-col w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="flex items-center justify-start [grid-area:1/1] text-sm gap-2"></div><button class="group-hover/codeblock:opacity-[1] transition-opacity duration-75 opacity-0 text-xs [grid-area:2/1] z-[2] justify-self-end backdrop-blur-md leading-none self-start ring-1 ring-tint text-tint bg-transparent rounded-md mr-2 mt-2 p-1 hover:ring-tint-hover print:hidden">Copy</button><pre class="[grid-area:2/1] relative overflow-auto bg-tint theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll rounded-md straight-corners:rounded-sm"><code id=":R4kd9uu8qfkvfa:" class="min-w-full inline-grid grid-cols-[auto_1fr] p-2 [count-reset:line]"><span class="highlight-line"><span class="highlight-line-content">class RoleConverter {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> static func convert(_ enumerated: Role) -> Int {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> return enumerated.rawValue<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> }<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> static func convert(_ num: Int?) -> Role {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> guard let num = num else { return Role.default }<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> return TestEnum(rawValue: num) ?? Role.default<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> }<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> </span></span><span class="highlight-line"><span class="highlight-line-content">enum Role: Int {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case default = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case author = 1<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> case admin = 2<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> </span></span><span class="highlight-line"><span class="highlight-line-content">class User: Entity, CustomDebugStringConvertible {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var id: Id = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> // objectbox: convert = { "dbType": "Int", "converter": "RoleConverter" }<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var role = Role.default<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"></span></span></code></pre></div><!--/$--><!--$--><h3 id="things-to-look-out-for" class="text-2xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[0.75em]"><a href="#things-to-look-out-for" aria-label="Direct link to heading" class="inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-snug"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/hashtag.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4"></svg></a></div><div class="grid-area-1-1 z-[1] justify-self-start text-left leading-snug mt-[0.75em]">Things to look out for</div></h3><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">Be sure to <strong class="font-bold">correctly handle nil</strong> and <strong class="font-bold">invalid values</strong>: If you add a field to your entity later on, old records in a database will not have a value for this field. Your converter will be handed a <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">nil</code> value for those instead. Or if a user opens a database created with a newer version of your app that supports additional values for an enum with an older version that doesn't know about these, you will have to supply a fallback value from your converter (In the above example, those are the two <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">Role.default</code> returns in <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">convert(_: Int?)</code>).</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">You must <strong class="font-bold">not interact with the database</strong> (such as using <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">Box</code> or <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">Store</code>) inside the converter. The converter methods are called within a transaction, so for example getting or putting entities into a box will fail.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">If you implement your database-to-class converter method to not take an optional, ObjectBox will supply an appropriate 0 value for missing values, Same as it would for the underlying type without a converter.</p><!--/$--><!--$--><div class="hint p-4 transition-colors rounded-md straight-corners:rounded-none bg-tint print-mode:!bg-tint theme-muted:bg-tint-base theme-bold-tint:bg-tint-base theme-gradient:bg-tint-12/1 border-tint [&_.can-override-bg]:bg-tint-active [&_.can-override-text]:text-tint-strong w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="flex flex-row"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/circle-info.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon size-5 mr-4 mt-0.5 leading-normal text-primary"></svg><div class="flex-1 space-y-4 [&_.hint]:border [&_pre]:border"><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl [&_a]:text-primary [&_a:hover]:text-primary-strong flip-heading-hash">Note: Make sure the converter is thread safe, because it might be called concurrently on multiple entities.</p><!--/$--></div></div></div><!--/$--><!--$--><h2 id="list-array-types" class="text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]"><a href="#list-array-types" aria-label="Direct link to heading" class="inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/hashtag.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4"></svg></a></div><div class="grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]">List/Array types</div></h2><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">At the moment it is not possible to use arrays with converters, apart from <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">[UInt8]</code>, which is treated like <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">Data</code>. However, you could convert a List of <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">String</code>s to a JSON array resulting in a single string for the database.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">Alternately, you can replace arrays with relations and create a new entity for the array elements. So, for example instead of</p><!--/$--><!--$--><div class="group/codeblock grid grid-flow-col w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="flex items-center justify-start [grid-area:1/1] text-sm gap-2"></div><button class="group-hover/codeblock:opacity-[1] transition-opacity duration-75 opacity-0 text-xs [grid-area:2/1] z-[2] justify-self-end backdrop-blur-md leading-none self-start ring-1 ring-tint text-tint bg-transparent rounded-md mr-2 mt-2 p-1 hover:ring-tint-hover print:hidden">Copy</button><pre class="[grid-area:2/1] relative overflow-auto bg-tint theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll rounded-md straight-corners:rounded-sm"><code id=":R6sd9uu8qfkvfa:" class="min-w-full inline-grid grid-cols-[auto_1fr] p-2 [count-reset:line]"><span class="highlight-line"><span class="highlight-line-content">class Document {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var id: Id = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var userNames: [String] // ObjectBox doesn't know how to store this<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}</span></span></code></pre></div><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">You would have two entities:</p><!--/$--><!--$--><div class="group/codeblock grid grid-flow-col w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="flex items-center justify-start [grid-area:1/1] text-sm gap-2"></div><button class="group-hover/codeblock:opacity-[1] transition-opacity duration-75 opacity-0 text-xs [grid-area:2/1] z-[2] justify-self-end backdrop-blur-md leading-none self-start ring-1 ring-tint text-tint bg-transparent rounded-md mr-2 mt-2 p-1 hover:ring-tint-hover print:hidden">Copy</button><pre class="[grid-area:2/1] relative overflow-auto bg-tint theme-gradient:bg-tint-12/1 ring-tint-subtle hide-scroll rounded-md straight-corners:rounded-sm"><code id=":R7cd9uu8qfkvfa:" class="min-w-full inline-grid grid-cols-[auto_1fr] p-2 [count-reset:line]"><span class="highlight-line"><span class="highlight-line-content">class Document {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var id: Id = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var users: ToMany<User><!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> </span></span><span class="highlight-line"><span class="highlight-line-content">class User {<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var id: Id = 0<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var document: ToOne<Document> = nil<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content"> var name: String<!-- --> </span></span><span class="highlight-line"><span class="highlight-line-content">}</span></span></code></pre></div><!--/$--><!--$--><h2 id="custom-types-in-queries" class="text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><div class="grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]"><a href="#custom-types-in-queries" aria-label="Direct link to heading" class="inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight"><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/hashtag.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4"></svg></a></div><div class="grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]">Custom types in queries</div></h2><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0"><code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">QueryBuilder</code> is unaware of custom types. You have to <strong class="font-bold">use the raw database value for queries</strong>.</p><!--/$--><!--$--><p class="w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0">So for the <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">User</code> example above you would get users with the role of <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">admin</code> with the query condition <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">box.query { User.role == Role.admin.rawValue }</code> or <code class="py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]">box.query { User.role == 2 }</code>.</p><!--/$--></div><!--/$--><div class="flex flex-col md:flex-row mt-6 gap-2 max-w-3xl mx-auto page-api-block:ml-0 text-tint"><a class="group text-sm p-2.5 flex gap-4 flex-1 flex-row-reverse items-center pl-4 border border-tint-subtle rounded straight-corners:rounded-none hover:border-primary text-pretty md:p-4 md:text-base" href="/advanced/macos"><span class="flex flex-col flex-1 text-right"><span class="text-xs">Previous</span><span class="text-tint-strong group-hover:text-primary line-clamp-2">The Sandbox on macOS</span></span><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/chevron-left.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon hidden size-4 text-tint-subtle contrast-more:text-tint-strong group-hover:text-primary md:block"></svg></a><a class="group text-sm p-2.5 flex gap-4 flex-1 flex-row items-center pr-4 border border-tint-subtle rounded straight-corners:rounded-none hover:border-primary text-pretty md:p-4 md:text-base" href="/advanced/data-model-updates"><span class="flex flex-col flex-1"><span class="text-xs">Next</span><span class="text-tint-strong group-hover:text-primary line-clamp-2">Data Model Updates</span></span><svg style="mask-image:url(https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/chevron-right.svg?v=2&token=a463935e93);mask-repeat:no-repeat;mask-position:center" class="gb-icon hidden size-4 text-tint-subtle contrast-more:text-tint-strong group-hover:text-primary md:block"></svg></a></div><div class="flex flex-row flex-wrap gap-4 items-center mt-6 max-w-3xl mx-auto page-api-block:ml-0 text-tint contrast-more:text-tint-strong"><p class="text-sm mr-auto">Last updated <time data-visual-test="transparent" dateTime="2024-07-29T10:44:15.507Z" title="7/29/2024, 10:44:15 AM">6 months ago</time></p><div class="flex flex-col gap-3 text-sm xl:hidden"><div class="flex flex-wrap items-center gap-2"><p>Was this helpful?</p><div class="bg-tint-base border border-tint-subtle contrast-more:border-tint-12 rounded-full"><div class="flex"><button class="p-2 hover:bg-primary-hover hover:text-primary-strong first:pl-2.5 last:pr-2.5 first:rounded-l-full last:rounded-r-full disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit contrast-more:hover:ring-1 ring-tint disabled:opacity-7 disabled:contrast-more:ring-0" type="button" aria-label="No" title="No"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="currentColor" fill-opacity="0.2"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.66782 13.3737C4.87421 13.5572 5.19025 13.5386 5.3737 13.3322C7.30371 11.1609 10.6963 11.1609 12.6263 13.3322C12.8098 13.5386 13.1258 13.5572 13.3322 13.3737C13.5386 13.1902 13.5572 12.8742 13.3737 12.6678C11.0459 10.049 6.9541 10.049 4.6263 12.6678C4.44284 12.8742 4.46143 13.1902 4.66782 13.3737ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z" fill="currentColor"></path></svg></button><button class="p-2 hover:bg-primary-hover hover:text-primary-strong first:pl-2.5 last:pr-2.5 first:rounded-l-full last:rounded-r-full disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit contrast-more:hover:ring-1 ring-tint disabled:opacity-7 disabled:contrast-more:ring-0" type="button" aria-label="Not sure" title="Not sure"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="currentColor" fill-opacity="0.2"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.5 12C4.5 11.7239 4.72386 11.5 5 11.5H13C13.2761 11.5 13.5 11.7239 13.5 12C13.5 12.2761 13.2761 12.5 13 12.5H5C4.72386 12.5 4.5 12.2761 4.5 12ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z" fill="currentColor"></path></svg></button><button class="p-2 hover:bg-primary-hover hover:text-primary-strong first:pl-2.5 last:pr-2.5 first:rounded-l-full last:rounded-r-full disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit contrast-more:hover:ring-1 ring-tint disabled:opacity-7 disabled:contrast-more:ring-0" type="button" aria-label="Yes, it was!" title="Yes, it was!"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="currentColor" fill-opacity="0.2"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.66782 11.6263C4.87421 11.4428 5.19025 11.4614 5.3737 11.6678C7.30371 13.8391 10.6963 13.8391 12.6263 11.6678C12.8098 11.4614 13.1258 11.4428 13.3322 11.6263C13.5386 11.8098 13.5572 12.1258 13.3737 12.3322C11.0459 14.951 6.9541 14.951 4.6263 12.3322C4.44284 12.1258 4.46143 11.8098 4.66782 11.6263ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z" fill="currentColor"></path></svg></button></div></div></div></div></div></main></div><!--$--><!--/$--><!--/$--></div></div><!--$--><!--/$--><!--$--><!--/$--><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0" data-cfasync="false"> document.addEventListener("DOMContentLoaded", () => { if (Array.from(document.scripts).find(script => script.src.includes('rocket-loader.min.js'))) { const alert = document.createElement('div'); alert.className = 'p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 mt-8 mx-8'; alert.innerHTML = ` <strong>Error in site configuration:</strong> It looks like ${window.location.hostname} has been incorrectly configured in Cloudflare. This may lead to unexpected behavior or issues with the page loading. If you are the owner of this site, please refer to <a href="https://docs.gitbook.com/published-documentation/custom-domain/configure-dns#are-you-using-cloudflare" class="underline">GitBook's documentation</a> for steps to fix the problem. `; document.body.prepend(alert); } });</script><script src="https://static.gitbook.com/_next/static/chunks/webpack-ff813e9d416ce230.js" nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0" async=""></script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"1:HC[\"https://static.gitbook.com\",\"\"]\n2:HL[\"https://static.gitbook.com/_next/static/css/9f5478b23a2dbc0b.css\",\"style\"]\n3:HL[\"https://static.gitbook.com/_next/static/css/c689b5a6a1432db7.css\",\"style\"]\n4:HL[\"https://static.gitbook.com/_next/static/css/619939f8b811f942.css\",\"style\"]\n5:HL[\"https://static.gitbook.com/_next/static/css/95b358fb5c9305a3.css\",\"style\"]\n6:HL[\"https://static.gitbook.com/_next/static/css/09a5087aafb66ce5.css\",\"style\"]\n7:HL[\"https://static.gitbook.com/_next/static/css/faa0908d2237c5e3.css\",\"style\"]\n8:HL[\"https://static.gitbook.com/_next/static/css/9008e36b498d813c.css\",\"style\"]\n9:HL[\"https://static.gitbook.com/_next/static/css/2567c890e467e55b.css\",\"style\"]\na:HL[\"https://static.gitbook.com/_next/static/css/79eda1c72751119a.css\",\"style\"]\nb:HL[\"https://static.gitbook.com/_next/static/css/4af9aafd612346fe.css\",\"style\"]\nc:I[11815,[],\"default\"]\nf:I[55092,[],\"default\"]\n11:I[82023,[],\"default\"]\n16:I[44622,[\"6470\",\"static/chunks/app/global-error-185b8d6d9c549d21.js\"],\"default\"]\n10:[\"pathname\",\"advanced/custom-types\",\"oc\"]\n17:[]\n0:[\"$\",\"$Lc\",null,{\"buildId\":\"EYxQFEz1Nbr1dJ4nh6_5U\",\"assetPrefix\":\"https://static.gitbook.com\",\"urlParts\":[\"\",\"advanced\",\"custom-types\"],\"initialTree\":[\"\",{\"children\":[\"middleware\",{\"children\":[\"(site)\",{\"children\":[\"(content)\",{\"children\":[[\"pathname\",\"advanced/custom-types\",\"oc\"],{\"children\":[\"__PAGE__?{\\\"pathname\\\":[\\\"advanced\\\",\\\"custom-types\\\"]}\",{}]}]}]},\"$undefined\",\"$undefined\",true]}]}],\"initialSeedData\":[\"\",{\"children\":[\"middleware\",{\"children\":[\"(site)\",{\"children\":[\"(content)\",{\"children\":[[\"pathname\",\"advanced/custom-types\",\"oc\"],{\"children\":[\"__PAGE__\",{},[[\"$Ld\",\"$Le\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/faa0908d2237c5e3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/9008e36b498d813c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/2567c890e467e55b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"3\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/79eda1c72751119a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"4\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/4af9aafd612346fe.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]],null],null]},[null,[\"$\",\"$Lf\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"middleware\",\"children\",\"(site)\",\"children\",\"(content)\",\"children\",\"$10\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L11\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$L12\",\"notFoundStyles\":[]}]],[[\"$\",\"div\",null,{\"className\":\"flex flex-row flex-1 relative py-8 lg:px-16 xl:mr-56 items-center lg:items-start\",\"children\":[\"$\",\"div\",null,{\"className\":\"flex-1 max-w-3xl mx-auto page-full-width:mx-0\",\"children\":[[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"mb-8\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)]"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1," [max-width:calc(48rem-1px)] mb-4\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}]]}]}],[],[]]]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/09a5087aafb66ce5.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],\"$L13\"],null],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/9f5478b23a2dbc0b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/c689b5a6a1432db7.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/619939f8b811f942.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"3\",{\"rel\":\"stylesheet\",\"href\":\"https://static.gitbook.com/_next/static/css/95b358fb5c9305a3.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],\"$L14\"],null],null]},[null,[\"$\",\"$Lf\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"middleware\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L11\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[null,[\"$\",\"$Lf\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L11\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L15\"],\"globalErrorComponent\":\"$16\",\"missingSlots\":\"$W17\"}]\n19:I[5145,[\"9322\",\"static/chunks/9322-5f5740cd5fd0bdf9.js\",\"4183\",\"static/chunks/app/middleware/(site)/layout-1a4e0bf6da1d58a4.js\"],\"IconsProvider\"]\n1a:I[75489,[\"9322\",\"static/chunks/9322-5f5740cd5fd0bdf9.js\",\"4183\",\"static/chunks/app/middleware/(site)/layout-1a4e0bf6da1d58a4.js\"],\"ClientContexts\"]\n1b:I[61946,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"8626\",\"static/chunks/app/middleware/(site)/error-65349dd045e81a2f.js\"],\"default\"]\n18:T139d,\n :root {\n --primary-1: 251 255 255; --contrast-primary-1: 29 29 29;\n--primary-2: 242 252 252; --contrast-primary-2: 29 29 29;\n--primary-3: 236 251 251; --contrast-primary-3: 29 29 29;\n--primary-4: 227 247 247;"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1," --contrast-primary-4: 29 29 29;\n--primary-5: 217 243 243; --contrast-primary-5: 29 29 29;\n--primary-6: 206 237 236; --contrast-primary-6: 29 29 29;\n--primary-7: 189 225 225; --contrast-primary-7: 29 29 29;\n--primary-8: 172 214 213; --contrast-primary-8: 29 29 29;\n--primary-9: 23 166 166; --contrast-primary-9: 255 255 255;\n--primary-10: 0 141 141; --contrast-primary-10: 255 255 255;\n--primary-11: 0 129 130; --contrast-primary-11: 255 255 255;\n--primary-12: 0 42 45; --contrast-primary-12: 255 255 255;\n--primary-original: 23 166 166; --contrast-primary-original: 255 255 255;\n --tint-1: 254 255 255; --contrast-tint-1: 29 29 29;\n--tint-2: 248 250 250; --contrast-tint-2: 29 29 29;\n--tint-3: 245 248 248; --contrast-tint-3: 29 29 29;\n--tint-4: 239 243 243; --contrast-tint-4: 29 29 29;\n--tint-5: 233 238 238; --contrast-tint-5: 29 29 29;\n--tint-6: 225 231 231; --contrast-tint-6: 29 29 29;\n--tint-7: 212 219 218; --contrast-tint-7: 29 29 29;\n--tint-8: 198 206 206; --contrast-tint-8: 29 29 29;\n--tint-9: 118 137 137; --contrast-tint-9: 255 255 255;\n--tint-10: 107 126 125; --contrast-tint-10: 255 255 255;\n--tint-11: 96 114 114; --contrast-tint-11: 255 255 255;\n--tint-12: 16 32 32; --contrast-tint-12: 255 255 255;\n--tint-original: 120 120 120; --contrast-tint-original: 255 255 255;\n --neutral-1: 255 255 255; --contrast-neutral-1: 29 29 29;\n--neutral-2: 250 250 250; --contrast-neutral-2: 29 29 29;\n--neutral-3: 247 247 247; --contrast-neutral-3: 29 29 29;\n--neutral-4: 242 242 242; --contrast-neutral-4: 29 29 29;\n--neutral-5: 237 237 237; --contrast-neutral-5: 29 29 29;\n--neutral-6: 229 229 229; --contrast-neutral-6: 29 29 29;\n--neutral-7: 217 217 217; --contrast-neutral-7: 29 29 29;\n--neutral-8: 204 204 204; --contrast-neutral-8: 29 29 29;\n--neutral-9: 120 120 120; --contrast-neutral-9: 255 255 255;\n--neutral-10: 121 121 121; --contrast-neutral-10: 255 255 255;\n--neutral-11: 110 110 110; --contrast-neutral-11: 255 255 255;\n--neutral-12: 29 29 29; --contrast-neutral-12: 255 255 255;\n--neutral-original: 120 120 120; --contrast-neutral-original: 255 255 255;\n\n --header-background: 23 166 166;\n --header-link: 255 255 255;\n }\n\n .dark {\n --primary-1: 26 30 30; --contrast-primary-1: 255 255 255;\n--primary-2: 29 36 36; --contrast-primary-2: 255 255 255;\n--primary-3: 35 47 46; --contrast-primary-3: 255 255 255;\n--primary-4: 35 51 51; --contrast-primary-4: 255 255 255;\n--primary-5: 37 58 58; --contrast-primary-5: 255 255 255;\n--primary-6: 36 63 63; --contrast-primary-6: 255 255 255;\n--primary-7: 42 74 74; --contrast-primary-7: 255 255 255;\n--primary-8: 47 86 85; --contrast-primary-8: 255 255 255;\n--primary-9: 23 166 166; --contrast-primary-9: 255 255 255;\n--primary-10: 19 165 165; --contrast-primary-10: 255 255 255;\n--primary-11: 91 214 214; --contrast-primary-11: 29 29 29;\n--primary-12: 159 255 255; --contrast-primary-12: 29 29 29;\n--primary-original: 23 166 166; --contrast-primary-original: 255 255 255;\n --tint-1: 29 29 29; --contrast-tint-1: 255 255 255;\n--tint-2: 34 35 35; --contrast-tint-2: 255 255 255;\n--tint-3: 43 44 44; --contrast-tint-3: 255 255 255;\n--tint-4: 46 48 48; --contrast-tint-4: 255 255 255;\n--tint-5: 52 54 54; --contrast-tint-5: 255 255 255;\n--tint-6: 56 58 58; --contrast-tint-6: 255 255 255;\n--tint-7: 65 68 68; --contrast-tint-7: 255 255 255;\n--tint-8: 75 79 79; --contrast-tint-8: 255 255 255;\n--tint-9: 126 135 135; --contrast-tint-9: 255 255 255;\n--tint-10: 137 146 146; --contrast-tint-10: 255 255 255;\n--tint-11: 185 194 194; --contrast-tint-11: 29 29 29;\n--tint-12: 247 255 255; --contrast-tint-12: 29 29 29;\n--tint-original: 120 120 120; --contrast-tint-original: 255 255 255;\n --neutral-1: 29 29 29; --contrast-neutral-1: 255 255 255;\n--neutral-2: 34 34 34; --contrast-neutral-2: 255 255 255;\n--neutral-3: 44 44 44; --contrast-neutral-3: 255 255 255;\n--neutral-4: 48 48 48; --contrast-neutral-4: 255 255 255;\n--neutral-5: 53 53 53; --c"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"ontrast-neutral-5: 255 255 255;\n--neutral-6: 57 57 57; --contrast-neutral-6: 255 255 255;\n--neutral-7: 67 67 67; --contrast-neutral-7: 255 255 255;\n--neutral-8: 78 78 78; --contrast-neutral-8: 255 255 255;\n--neutral-9: 120 120 120; --contrast-neutral-9: 255 255 255;\n--neutral-10: 144 144 144; --contrast-neutral-10: 255 255 255;\n--neutral-11: 192 192 192; --contrast-neutral-11: 29 29 29;\n--neutral-12: 255 255 255; --contrast-neutral-12: 29 29 29;\n--neutral-original: 120 120 120; --contrast-neutral-original: 255 255 255;\n\n --header-background: 23 166 166;\n --header-link: 255 255 255;\n }\n 14:[\"$\",\"html\",null,{\"suppressHydrationWarning\":true,\"lang\":\"en\",\"className\":\"scroll-pt-[76px] theme-clean no-tint sidebar-default sidebar-list-default\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"link\",null,{\"rel\":\"privacy-policy\",\"href\":\"https://objectbox.io/wordpress/wp-content/uploads/2022/08/Object-Box-Privacy-Notice.pdf\"}],[\"$\",\"style\",null,{\"nonce\":\"$undefined\",\"children\":\"$18\"}]]}],[\"$\",\"body\",null,{\"className\":\"__className_2f5617 __className_7d852e __variable_96046e bg-tint-base theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle theme-gradient:bg-gradient-primary theme-gradient-tint:bg-gradient-tint\",\"children\":[\"$\",\"$L19\",null,{\"assetsURL\":\"https://ka-p.fontawesome.com/releases/v6.6.0/\",\"assetsURLToken\":\"a463935e93\",\"assetsByStyles\":{\"custom-icons\":{\"assetsURL\":\"https://static.gitbook.com/~gitbook/static/icons\"}},\"iconStyle\":\"regular\",\"children\":[\"$\",\"$L1a\",null,{\"language\":{\"locale\":\"en\",\"powered_by_gitbook\":\"Powered by GitBook\",\"sponsored_via_gitbook\":\"Sponsored via GitBook\",\"switch_to_dark_theme\":\"Switch to dark theme\",\"switch_to_light_theme\":\"Switch to light theme\",\"switch_to_system_theme\":\"Switch to system theme\",\"search\":\"Search\",\"search_or_ask\":\"Ask or search\",\"search_input_placeholder\":\"Search content\",\"search_ask_input_placeholder\":\"Search content or ask a question\",\"search_no_results\":\"No results for \\\"${1}\\\".\",\"search_scope_space\":\"$${1}\",\"search_scope_all\":\"All content\",\"search_ask\":\"Ask \\\"${1}\\\"\",\"search_ask_description\":\"Find the answer with AI\",\"search_ask_sources\":\"Sources\",\"search_ask_sources_no_answer\":\"Related pages\",\"search_ask_no_answer\":\"An answer could not be found for your question. You could try rephrasing it, or be more specific.\",\"search_ask_error\":\"Something went wrong. Please try again later.\",\"on_this_page\":\"On this page\",\"next_page\":\"Next\",\"previous_page\":\"Previous\",\"page_last_modified\":\"Last updated ${1}\",\"was_this_helpful\":\"Was this helpful?\",\"was_this_helpful_positive\":\"Yes, it was!\",\"was_this_helpful_neutral\":\"Not sure\",\"was_this_helpful_negative\":\"No\",\"was_this_helpful_thank_you\":\"Thank you!\",\"was_this_helpful_comment\":\"Anything you'd like to add?\",\"submit\":\"Submit\",\"annotation_button_label\":\"Open annotation\",\"code_copied\":\"Copied!\",\"code_copy\":\"Copy\",\"table_of_contents_button_label\":\"Open table of contents\",\"cookies_title\":\"Cookies\",\"cookies_prompt\":\"This site uses cookies to deliver its service and to analyse traffic. By browsing this site, you accept the ${1}.\",\"cookies_prompt_privacy\":\"privacy policy\",\"cookies_accept\":\"Accept\",\"cookies_reject\":\"Reject\",\"cookies_close\":\"Close\",\"edit_on_git\":\"Edit on ${1}\",\"notfound_title\":\"Page not found\",\"notfound\":\"The page you are looking for doesn't exist.\",\"unexpected_error_title\":\"An error occurred\",\"unexpected_error\":\"Sorry, an unexpected error has occurred. Please try again later.\",\"unexpected_error_retry\":\"Retry\",\"pdf_download\":\"Export as PDF\",\"pdf_goback\":\"Go back to content\",\"pdf_print\":\"Print or Save as PDF\",\"pdf_page_of\":\"$${1} of ${2}\",\"pdf_mode_only_page\":\"Only this page\",\"pdf_mode_all\":\"All pages\",\"pdf_limit_reached\":\"Couldn't generate the PDF for ${1} pages, generation stopped at ${2}.\",\"pdf_limit_reached_continue\":\"Extend with ${1} more pages.\",\"more\":\"More\"},\"children\":[\"$\",\"$Lf\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"middleware\",\"children\",\"(site)\",\"children\"],\"error\":\"$1b\",\"errorStyles\":[],\"errorScripts\":[],\"template\":[\"$\","])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"\"$L11\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]}]}]}]]}]\n1e:I[26700,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"TrackPageViewEvent\"]\n1f:I[35592,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"NuqsAdapter\"]\n20:I[2092,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"ClientContexts\"]\n22:\"$Sreact.suspense\"\n23:I[35489,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"CookiesToast\"]\n1c:HC\"https://api.gitbook.com\"\n1d:HC\"https://static.gitbook.com\"\n12:[\"$\",\"div\",null,{\"className\":\"flex-1 flex flex-row items-center justify-center py-9 min-h-[calc(100vh-64px)] lg:min-h-fit\",\"children\":[[\"$\",\"div\",null,{\"className\":\"max-w-80\",\"children\":[[\"$\",\"h2\",null,{\"className\":\"text-2xl font-semibold mb-2\",\"children\":\"Page not found\"}],[\"$\",\"p\",null,{\"className\":\"text-base mb-4\",\"children\":\"The page you are looking for doesn't exist.\"}]]}],[\"$\",\"$L1e\",null,{\"pageId\":null,\"revisionId\":\"6NMq13OwEur26j7VFZaS\"}]]}]\n13:[\"$\",\"$L1f\",null,{\"children\":[\"$\",\"$L20\",null,{\"nonce\":\"NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0\",\"forcedTheme\":\"light\",\"children\":[\"$L21\",null,[\"$\",\"$22\",null,{\"fallback\":null,\"children\":[\"$\",\"$L23\",null,{\"privacyPolicy\":\"https://objectbox.io/wordpress/wp-content/uploads/2022/08/Object-Box-Privacy-Notice.pdf\"}]}],[\"$\",\"script\",null,{\"nonce\":\"NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0\",\"suppressHydrationWarning\":true,\"data-cfasync\":\"false\",\"dangerouslySetInnerHTML\":{\"__html\":\"\\n document.addEventListener(\\\"DOMContentLoaded\\\", () =\u003e {\\n if (Array.from(document.scripts).find(script =\u003e script.src.includes('rocket-loader.min.js'))) {\\n const alert = document.createElement('div');\\n alert.className = 'p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 mt-8 mx-8';\\n alert.innerHTML = `\\n \u003cstrong\u003eError in site configuration:\u003c/strong\u003e\\n It looks like ${window.location.hostname} has been incorrectly configured in Cloudflare. This may lead to unexpected behavior or issues with the page loading. If you are the owner of this site, please refer to \u003ca href=\\\"https://docs.gitbook.com/published-documentation/custom-domain/configure-dns#are-you-using-cloudflare\\\" class=\\\"underline\\\"\u003eGitBook's documentation\u003c/a\u003e for steps to fix the problem.\\n `;\\n\\n document.body.prepend(alert);\\n }\\n });\"}}],\"$"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"L24\"]}]}]\n25:I[31200,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"InsightsProvider\"]\n26:I[19284,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"HeaderMobileMenu\"]\n29:I[86604,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"SearchButton\"]\n2a:I[19656,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"TOCScrollContainer\"]\n3e:I[22833,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"Link\"]\n3f:I[22563,[\"9322\",\"static/chunks/9322-5f5740cd5fd0bdf9.js\",\"4183\",\"static/chunks/app/middleware/(site)/layout-1a4e0bf6da1d58a4.js\"],\"Icon\"]\n40:I[42579,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"SearchModal\"]\n24:null\n21:[\"$\",\"$L25\",null,{\"enabled\":true,\"apiHost\":\"https://api.gitbook.com\",\"visitorAuthToken\":null,\"siteId\":\"site_oiFw9\",\"spaceId\":\"-LR7sVOoZyL01-NkNVQJ\",\"organizationId\":\"-LETrjVL2EKnHuIjYh8P\",\"siteSectionId\":\"$undefined\",\"siteSpaceId\":\"sitesp_VTGcb\",\"siteShareKey\":\"$undefined\",\"revisionId\":\"$undefined\",\"changeRequestId\":\"$undefined\",\"children\":[[\"$\",\"header\",null,{\"id\":\"site-header\",\"className\":\"flex flex-col h-[64px] sticky top-0 z-10 w-full flex-none shadow-[0px_1px_0px] shadow-tint-12/2 bg-tint-base/9 theme-muted:bg-tint-subtle/9 theme-bold-tint:bg-tint-subtle/9 theme-gradient:bg-gradient-primary theme-gradient-tint:bg-gradient-tint contrast-more:bg-tint-base text-sm backdrop-blur-lg\",\"children\":[[\"$\",\"div\",null,{\"className\":\"theme-bold:bg-header-background theme-bold:shadow-[0px_1px_0px] theme-bold:shadow-tint-12/2\",\"children\":[\"$\",\"div\",null,{\"className\":\"scroll-nojump\",\"children\":[\"$\",\"div\",null,{\"className\":\"gap-4 lg:gap-8 flex items-center justify-betwe"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"en w-full py-3 min-h-16 sm:h-16 px-4 sm:px-6 md:px-8 max-w-screen-2xl mx-auto page-full-width:max-w-full\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex max-w-full shrink min-w-0 gap-2 lg:gap-4 justify-start items-center\",\"children\":[[\"$\",\"$L26\",null,{\"className\":\"lg:hidden -ml-2 text-tint-strong theme-bold:text-header-link hover:bg-tint-hover theme-bold:hover:bg-header-link/3\"}],\"$L27\"]}],false,\"$L28\",[\"$\",\"div\",null,{\"className\":\"flex md:min-w-56 grow-0 shrink-0 justify-self-end\",\"children\":[\"$\",\"$22\",null,{\"fallback\":null,\"children\":[\"$\",\"$L29\",null,{\"style\":[\"theme-bold:bg-header-link/2\",\"theme-bold:hover:bg-header-link/3\",\"theme-bold:text-header-link/8\",\"theme-bold:hover:text-header-link\",\"theme-bold:ring-header-link/4\",\"theme-bold:hover:ring-header-link/5\",\"theme-bold:[\u0026_svg]:text-header-link/10\",\"theme-bold:[\u0026_.shortcut]:text-header-link/8\",\"theme-bold:contrast-more:bg-header-background\",\"theme-bold:contrast-more:text-header-link\",\"theme-bold:contrast-more:ring-header-link\",\"theme-bold:contrast-more:hover:bg-header-background\",\"theme-bold:contrast-more:hover:ring-header-link\",\"theme-bold:contrast-more:focus:text-header-link\",\"theme-bold:contrast-more:focus:bg-header-background\",\"theme-bold:contrast-more:focus:ring-header-link\",\"theme-bold:shadow-none\",\"theme-bold:hover:shadow-none\"],\"children\":[\"$\",\"span\",null,{\"className\":\"flex-1\",\"children\":[\"Search\",\"...\"]}]}]}]}]]}]}]}],null]}],[\"$\",\"div\",null,{\"className\":\"flex flex-col lg:flex-row px-4 sm:px-6 md:px-8 max-w-screen-2xl mx-auto page-full-width:max-w-full\",\"children\":[[\"$\",\"aside\",null,{\"data-testid\":\"table-of-contents\",\"className\":\"group page-no-toc:hidden grow-0 shrink-0 basis-full lg:basis-72 relative z-[1] lg:sticky lg:top-0 lg:h-screen site-header:lg:top-16 site-header:lg:h-[calc(100vh_-_4rem)] site-header-sections:lg:top-[6.75rem] site-header-sections:lg:h-[calc(100vh_-_6.75rem)] pt-6 pb-4 sidebar-filled:lg:pr-6 hidden navigation-open:flex lg:flex flex-col gap-4 navigation-open:border-b border-tint-subtle\",\"children\":[null,[\"$\",\"div\",null,{\"className\":\"lg:-ms-5 overflow-hidden relative flex flex-col flex-grow sidebar-filled:bg-tint-subtle theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle [html.sidebar-filled.theme-muted_\u0026]:bg-tint-base [html.sidebar-filled.theme-bold.tint_\u0026]:bg-tint-base sidebar-filled:rounded-xl straight-corners:rounded-none\",\"children\":[[\"$\",\"div\",null,{\"className\":\"px-5 *:my-4\",\"children\":[false,false,false]}],[\"$\",\"$L2a\",null,{\"className\":\"flex flex-grow flex-col p-2 lg:pb-20 overflow-y-auto lg:gutter-stable [\u0026::-webkit-scrollbar]:bg-transparent [\u0026::-webkit-scrollbar-thumb]:bg-transparent group-hover:[\u0026::-webkit-scrollbar]:bg-tint-subtle group-hover:[\u0026::-webkit-scrollbar-thumb]:bg-tint-7 group-hover:[\u0026::-webkit-scrollbar-thumb:hover]:bg-tint-8\",\"children\":[[\"$\",\"ul\",null,{\"className\":\"flex flex-col gap-y-0.5 sidebar-list-line:border-l border-tint-subtle\",\"children\":[\"$L2b\",\"$L2c\",\"$L2d\",\"$L2e\",\"$L2f\",\"$L30\",\"$L31\",\"$L32\",\"$L33\",[\"$\",\"li\",null,{\"className\":\"flex flex-col group/page-group-item\",\"children\":[[\"$\",\"div\",null,{\"className\":\"flex items-center gap-3 px-3 z-[1] sticky -top-5 pt-6 group-first/page-group-item:-mt-5 pb-3 -mb-1.5 text-xs tracking-wide font-semibold uppercase [mask-image:linear-gradient(rgba(0,0,0,1)_70%,rgba(0,0,0,0))] bg-tint-base sidebar-filled:bg-tint-subtle theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle [html.sidebar-filled.theme-muted_\u0026]:bg-tint-base [html.sidebar-filled.theme-bold.tint_\u0026]:bg-tint-base [html.sidebar-default.theme-gradient_\u0026]:bg-gradient-primary [html.sidebar-default.theme-gradient.tint_\u0026]:bg-gradient-tint\",\"children\":[\"$undefined\",\"Advanced\"]}],[\"$\",\"ul\",null,{\"className\":\"flex flex-col gap-y-0.5\",\"children\":[\"$L34\",\"$L35\",\"$L36\",\"$L37\",\"$L38\",\"$L39\",\"$L3a\"]}]]}],\"$L3b\",\"$L3c\",\"$L3d\"]}],[\"$\",\"div\",null,{\"className\":\"relative z-[2] lg:absolute mt-6 left-0 right-2 bottom-0 pointer-events-none sidebar-filled:pl-2 sidebar-filled:pb-2 bg-tint-base sidebar-filled:bg-tint-subtle theme-muted:bg-tint-subtle [html.sidebar-filled.theme-muted_\u0026]:bg-tint-base [html.sidebar-filled.theme-b"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"old.tint_\u0026]:bg-tint-base before:hidden lg:before:block before:content-[\\\"\\\"] before:absolute before:inset-x-0 before:bottom-full before:h-8 before:bg-gradient-to-b before:from-transparent before:to-tint-base sidebar-filled:before:to-tint-subtle theme-muted:before:to-tint-subtle theme-bold-tint:before:to-tint-subtle [html.sidebar-filled.theme-muted_\u0026]:before:to-tint-base [html.sidebar-filled.theme-bold.tint_\u0026]:before:to-tint-base\",\"children\":[\"$\",\"$L3e\",null,{\"target\":\"_blank\",\"href\":\"https://www.gitbook.com/?utm_source=content\u0026utm_medium=trademark\u0026utm_campaign=-LR7sVOoZyL01-NkNVQJ\",\"className\":\"text-sm font-semibold text-tint flex flex-row items-center px-5 py-4 sidebar-filled:px-3 rounded-lg straight-corners:rounded-none hover:bg-tint hover:text-tint-strong ring-2 lg:ring-1 ring-inset ring-tint-subtle transition-colors pointer-events-auto\",\"insights\":{\"type\":\"trademark_click\",\"placement\":\"sidebar\"},\"children\":[[\"$\",\"$L3f\",null,{\"icon\":\"gitbook\",\"className\":\"size-5 mr-3\"}],\"Powered by GitBook\"]}]}]]}]]}]]}],[\"$\",\"div\",null,{\"className\":\"flex-1 flex flex-col\",\"children\":[\"$\",\"$Lf\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"middleware\",\"children\",\"(site)\",\"children\",\"(content)\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L11\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]}]]}],null,[\"$\",\"$22\",null,{\"fallback\":null,\"children\":[\"$\",\"$L40\",null,{\"revisionId\":\"6NMq13OwEur26j7VFZaS\",\"spaceTitle\":\"ObjectBox Swift\",\"withAsk\":false,\"isMultiVariants\":false,\"pointer\":{\"siteId\":\"site_oiFw9\",\"spaceId\":\"-LR7sVOoZyL01-NkNVQJ\",\"organizationId\":\"-LETrjVL2EKnHuIjYh8P\",\"siteSectionId\":\"$undefined\",\"siteSpaceId\":\"sitesp_VTGcb\",\"siteShareKey\":\"$undefined\",\"revisionId\":\"$undefined\",\"changeRequestId\":\"$undefined\"}}]}]]}]\n4a:I[66185,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"ToggleableLinkItem\"]\n28:[\"$\",\"div\",null,{\"className\":\"headerLinks_containerHeaderlinks__GUgiv grow shrink flex justify-end items-center gap-x-4 lg:gap-x-6 min-w-9 z-20 lg:[\u0026\u003e.button+.button]:-ml-2\",\"children\":[[\"$L41\",\"$L42\",\"$L43\",\"$L44\"],[\"$\",\"div\",null,{\"className\":\"headerLinks_linkEllipsis__Z01IN items-center z-20\",\"children\":[\"$\",\"div\",null,{\"className\":\"group/dropdown relative flex shrink min-w-0\",\"children\":[[\"$\",\"button\",null,{\"type\":\"button\",\"className\":\"text-tint hover:text-primary dark:hover:text-primary theme-bold:text-header-link theme-bold:hover:text-header-link/8 flex gap-1 items-center\",\"children\":[[\"$\",\"span\",null,{\"className\":\"sr-only\",\"children\":\"More\"}],[\"$\",\"$L3f\",null,{\"icon\":\"ellipsis\",\"className\":\"size-4\"}],[\"$\",\"$L3f\",null,{\"icon\":\"chevron-down\",\"className\":\"shrink-0 opacity-6 size-3 ms-1 transition-all group-hover/dropdown:opacity-11 group-focus-within/dropdown:rotate-180\"}]]}],[\"$\",\"div\",null,{\"tabIndex\":-1,\"role\":\"menu\",\"aria-orientation\":\"vertical\",\"aria-labelledby\":\":S1:\",\"className\":\"w-52 max-h-80 flex absolute top-full left-0 z-20 origin-top-left invisible transition-opacity duration-1000 group-hover/dropdown:visible group-focus-within/dropdown:visible -translate-x-48 md:translate-x-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"mt-2 w-full bg-tint-base rounded-lg straight-corners:rounded-sm p-2 shadow-1xs overflow-auto ring-1 ring-tint-subtle focus:outline-none\",\"children\":[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-1\",\"children\":[\"$L45\",\"$L46\",\"$L47\",\"$L48\"]}]}]}]]}]}]]}]\n33:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L3e\",null,{\"href\":\"https://objectbox.io/docfiles/swift/current/\",\"className\":\"flex justify-start items-center gap-3 p-1.5 pl-3 text-"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"url\",\"url\":\"https://objectbox.io/docfiles/swift/current/\"},\"position\":\"sidebar\"}},\"children\":[\"$undefined\",\"Swift API Docs\",[\"$\",\"$L3f\",null,{\"icon\":\"arrow-up-right-from-square\",\"className\":\"size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [\u0026\u003epath]:transition-[opacity] [\u0026\u003epath]:[opacity:0.40] group-hover:[\u0026\u003epath]:[opacity:1]\"}]]}]}]\n3b:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L3e\",null,{\"href\":\"https://objectbox.io/sync/\",\"className\":\"flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"url\",\"url\":\"https://objectbox.io/sync/\"},\"position\":\"sidebar\"}},\"children\":[\"$undefined\",\"Data Sync\",[\"$\",\"$L3f\",null,{\"icon\":\"arrow-up-right-from-square\",\"className\":\"size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [\u0026\u003epath]:transition-[opacity] [\u0026\u003epath]:[opacity:0.40] group-hover:[\u0026\u003epath]:[opacity:1]\"}]]}]}]\n3c:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L3e\",null,{\"href\":\"https://docs.objectbox.io/\",\"className\":\"flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"url\",\"url\":\"https://docs.objectbox.io/\"},\"position\":\"sidebar\"}},\"children\":[\"$undefined\",\"Android Database\",[\"$\",\"$L3f\",null,{\"icon\":\"arrow-up-right-from-square\",\"className\":\"size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [\u0026\u003epath]:transition-[opacity] [\u0026\u003epath]:[opacity:0.40] group-hover:[\u0026\u003epath]:[opacity:1]\"}]]}]}]\n3d:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L3e\",null,{\"href\":\"https://pub.dev/packages/objectbox\",\"className\":\"flex justify-start items-center gap-3 p-1.5 pl-3 text-sm transition-colors duration-100 text-tint-strong/7 rounded-md straight-corners:rounded-none before:content-none font-normal hover:bg-tint hover:text-tint-strong\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"url\",\"url\":\"https://pub.dev/packages/objectbox\"},\"position\":\"sidebar\"}},\"children\":[\"$undefined\",\"Flutter Database\",[\"$\",\"$L3f\",null,{\"icon\":\"arrow-up-right-from-square\",\"className\":\"size-3 mr-1 mt-1 place-self-start shrink-0 text-current transition-colors [\u0026\u003epath]:transition-[opacity] [\u0026\u003epath]:[opacity:0.40] group-hover:[\u0026\u003epath]:[opacity:1]\"}]]}]}]\n27:[\"$\",\"$L3e\",null,{\"href\":\"/\",\"className\":\"group/headerlogo min-w-0 shrink flex items-center\",\"children\":[\"$L49\",[\"$\",\"div\",null,{\"className\":\"text-pretty line-clamp-3 tracking-tight max-w-[18ch] lg:max-w-[24ch] font-semibold ms-3 text-base/tight lg:text-lg/tight text-tint-strong theme-bold:text-header-link\",\"children\":\"ObjectBox Swift\"}]]}]\n2b:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/\",\"pathname\":\"\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LR7sVOpCzHkvoeZDhV0\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"ObjectBox Swift Database Docs\"}]}]\n2c:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/install\",\"pathname\":\"install\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LRBA63hyZhce4wsgIgM\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Install ObjectBox Swift\"}]}]\n2d:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/getting-started\",\"pathname\":\"getting-started\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LRBFI656GAv_2fiGjYN\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Get Started with ObjectBox Swift\"}]}]\n2e:[\"$\",\"li\",null,{\"classNam"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"e\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/entity-annotations\",\"pathname\":\"entity-annotations\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LSUBOHTVZ0MJ31Sf0YG\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Entity Annotations in ObjectBox\"}]}]\n2f:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/queries\",\"pathname\":\"queries\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LRBYdupYB_ngS9cKlHx\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Queries\"}]}]\n30:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/relations\",\"pathname\":\"relations\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LRCVyRqGuPbmYiKXGZi\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Relations\"}]}]\n31:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/transactions\",\"pathname\":\"transactions\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LRIJnzhhl3cynIFNMlD\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Transactions\"}]}]\n32:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/faq\",\"pathname\":\"faq\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LpbTUV30z2ftI3Gn97D\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"ObjectBox Swift FAQ\"}]}]\n34:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/macos\",\"pathname\":\"advanced/macos\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LpmOffKBkN9wob34g3s\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"The Sandbox on macOS\"}]}]\n35:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/custom-types\",\"pathname\":\"advanced/custom-types\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-Lj_jqJGRib432ozwbTQ\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Enums and Custom Types\"}]}]\n36:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/data-model-updates\",\"pathname\":\"advanced/data-model-updates\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LTgQwiejsXHS-gvskrb\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Data Model Updates\"}]}]\n37:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/meta-model-ids-and-uids\",\"pathname\":\"advanced/meta-model-ids-and-uids\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LTgeq9ewZM28ZFJW4c5\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Meta Model, IDs and UIDs\"}]}]\n38:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/manual-installation\",\"pathname\":\"advanced/manual-installation\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LpmJpk__uCugbl5X0hO\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Manual Installation\"}]}]\n39:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/setup-script\",\"pathname\":\"advanced/setup-script\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-Lpmn1k1Jq2n5vkCz_m3\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"The setup.rb Script\"}]}]\n3a:[\"$\",\"li\",null,{\"className\":\"flex flex-col\",\"children\":[\"$\",\"$L4a\",null,{\"href\":\"/advanced/sourcery\",\"pathname\":\"advanced/sourcery\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LRBHZuIySI6ITpeYqJf\"},\"position\":\"sidebar\"}},\"descendants\":null,\"children\":\"Customizing Code Generation\"}]}]\n49:[\"$L4b\",\"$L4c\"]\n41:[\"$\",\"$L3e\",null,{\"href\":\"https://objectbox.io/\",\"className\":\"flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"url\":\"https://objectbox.io/\",\"kind\":\"url\"},\"position\":\"header\"}},\"children\":[[\"$\",\"span\",null,{"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"\"className\":\"truncate min-w-0\",\"children\":\"objectbox.io\"}],null]}]\n42:[\"$\",\"$L3e\",null,{\"href\":\"https://objectbox.io/blog/\",\"className\":\"flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"url\":\"https://objectbox.io/blog/\",\"kind\":\"url\"},\"position\":\"header\"}},\"children\":[[\"$\",\"span\",null,{\"className\":\"truncate min-w-0\",\"children\":\"Blog\"}],null]}]\n43:[\"$\",\"$L3e\",null,{\"href\":\"https://twitter.com/ObjectBox_io\",\"className\":\"flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"url\":\"https://twitter.com/ObjectBox_io\",\"kind\":\"url\"},\"position\":\"header\"}},\"children\":[[\"$\",\"span\",null,{\"className\":\"truncate min-w-0\",\"children\":\"Twitter\"}],null]}]\n44:[\"$\",\"$L3e\",null,{\"href\":\"https://github.com/objectbox/objectbox-swift\",\"className\":\"flex items-center shrink min-w-0 contrast-more:underline text-tint hover:text-primary tint:hover:text-tint-strong theme-bold:text-header-link theme-bold:hover:text-header-link\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"url\":\"https://github.com/objectbox/objectbox-swift\",\"kind\":\"url\"},\"position\":\"header\"}},\"children\":[[\"$\",\"span\",null,{\"className\":\"truncate min-w-0\",\"children\":\"GitHub\"}],null]}]\n4d:{\"url\":\"https://objectbox.io/\",\"kind\":\"url\"}\n45:[false,[\"$\",\"$L3e\",null,{\"href\":\"https://objectbox.io/\",\"prefetch\":false,\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":\"$4d\",\"position\":\"header\"}},\"className\":\"px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover\",\"children\":\"objectbox.io\"}],[]]\n4e:{\"url\":\"https://objectbox.io/blog/\",\"kind\":\"url\"}\n46:[false,[\"$\",\"$L3e\",null,{\"href\":\"https://objectbox.io/blog/\",\"prefetch\":false,\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":\"$4e\",\"position\":\"header\"}},\"className\":\"px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover\",\"children\":\"Blog\"}],[]]\n4f:{\"url\":\"https://twitter.com/ObjectBox_io\",\"kind\":\"url\"}\n47:[false,[\"$\",\"$L3e\",null,{\"href\":\"https://twitter.com/ObjectBox_io\",\"prefetch\":false,\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":\"$4f\",\"position\":\"header\"}},\"className\":\"px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover\",\"children\":\"Twitter\"}],[]]\n50:{\"url\":\"https://github.com/objectbox/objectbox-swift\",\"kind\":\"url\"}\n48:[false,[\"$\",\"$L3e\",null,{\"href\":\"https://github.com/objectbox/objectbox-swift\",\"prefetch\":false,\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":\"$50\",\"position\":\"header\"}},\"className\":\"px-3 py-1 text-sm rounded straight-corners:rounded-sm hover:bg-tint-hover\",\"children\":\"GitHub\"}],[]]\n51:T46f,https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=1\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 32w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=2\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 64w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=3\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 96w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=4\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 128w4c:[\"$\",\"img\",null,{\"alt\":\"\",\"style\":{\"aspectRatio\":\"1\"},\"loading\":\"lazy\",\"fetchPriority\":\"high\",\"data-visual-test\":\"$u"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"ndefined\",\"className\":\"hidden dark:block object-contain size-8\",\"src\":\"https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=4\u0026quality=100\u0026sign=e7bedd15\u0026sv=2\",\"srcSet\":\"$51\",\"sizes\":\"32px\",\"width\":256,\"height\":256}]\n52:T46f,https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=1\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 32w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=2\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 64w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=3\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 96w, https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=4\u0026quality=100\u0026sign=e7bedd15\u0026sv=2 128w4b:[\"$\",\"img\",null,{\"alt\":\"\",\"style\":{\"aspectRatio\":\"1\"},\"loading\":\"$undefined\",\"fetchPriority\":\"high\",\"data-visual-test\":\"$undefined\",\"className\":\"block dark:hidden object-contain size-8\",\"src\":\"https://swift.objectbox.io/~gitbook/image?url=https%3A%2F%2F2249461369-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LR7sVOoZyL01-NkNVQJ%252Favatar.png%3Fgeneration%3D1542042291053653%26alt%3Dmedia\u0026width=32\u0026dpr=4\u0026quality=100\u0026sign=e7bedd15\u0026sv=2\",\"srcSet\":\"$52\",\"sizes\":\"32px\",\"width\":256,\"height\":256}]\n54:I[46451,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5572\",\"static/chunks/5572-d068cc2bc8e73d12.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"8843\",\"static/chunks/8843-f0d01ada04c351a9.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"4168\",\"static/chunks/4168-597f57f1cfad2671.js\",\"4722\",\"static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js\"],\"PreservePageLayout\"]\n56:\"$Sreact.fragment\"\n57:I[58982,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5572\",\"static/chunks/5572-d068cc2bc8e73d12.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"8843\",\"static/chunks/8843-f0d01ada04c351a9.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"4168\",\"static/chunks/4168-597f57f1cfad2671.js\",\"4722\",\"static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js\"],\"ClientCodeBlock\"]\n5a:I[66819,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"3625\",\"static/chunks/3625-453944d6ea4368cb.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"6119\",\"static/chunks/app/middleware/(site)/(content)/layout-1043f1693da1ab25.js\"],\"DateRelative\"]\n5b:I[75632,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5572\",\"static/chunks/5572-d068cc2bc8e73d12.js\",\"5890\",\"static"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"/chunks/5890-3ab2501336ce1348.js\",\"8843\",\"static/chunks/8843-f0d01ada04c351a9.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"4168\",\"static/chunks/4168-597f57f1cfad2671.js\",\"4722\",\"static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js\"],\"PageFeedbackForm\"]\n5c:I[16643,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5572\",\"static/chunks/5572-d068cc2bc8e73d12.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"8843\",\"static/chunks/8843-f0d01ada04c351a9.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"4168\",\"static/chunks/4168-597f57f1cfad2671.js\",\"4722\",\"static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js\"],\"PageClientLayout\"]\n58:[\"page-api-block:ml-0\"]\ne:[null,[\"$\",\"div\",null,{\"className\":\"flex flex-row-reverse justify-end grow\",\"children\":[\"$L53\",[[\"$\",\"main\",null,{\"className\":\"flex-1 relative py-8 lg:px-12 break-anywhere page-api-block:xl:max-2xl:pr-0 page-api-block:max-w-[1654px] page-api-block:mx-auto\",\"children\":[[\"$\",\"$L54\",null,{\"asFullWidth\":false}],null,\"$L55\",[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-4\",\"children\":[[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"enums\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\""])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid "])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"enums-in-queries\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle over"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"flow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"custom-property-converters\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"things-to-look-out-for\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"list-array-types\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\""])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"custom-types-in-queries\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transpare"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"nt grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}]]}],\"children\":[\"$\",\"div\",null,{\"className\":\"[\u0026\u003e*+*]:mt-5 grid whitespace-pre-wrap\",\"children\":[[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Custom types allow entities to have properties of any type. This is based on mapping custom classes to built-in types. ObjectBox recognizes the following built-in (Swift) types:\"}]]]}],[\"$\",\"$L57\",null,{\"block\":{\"object\":\"block\",\"type\":\"code\",\"isVoid\":false,\"data\":{\"syntax\":\"swift\"},\"nodes\":[{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Int8, UInt8\",\"marks\":[]}],\"key\":\"3faa7d2e10c649f18261e4868e141733\"}],\"key\":\"c761059116114488864665a9540595a0\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Int16, UInt16\",\"marks\":[]}],\"key\":\"e0708c9d92da4b99bfc3b4a9bb126ffd\"}],\"key\":\"14a164c65dee4f249dc67a91844f3b8d\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Int32, UInt32\",\"marks\":[]}],\"key\":\"cfb3b393d5534ad8bcd911b731187b7e\"}],\"key\":\"11357be0e14a4e9da830965230f93475\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Int64, Int, UInt64, UInt\",\"marks\":[]}],\"key\":\"6390f8e913d24551ac59102bcb541ea4\"}],\"key\":\"9ab2d012fa824d7a89c634ab1216301a\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Float, Double\",\"marks\":[]}],\"key\":\"3e91cf69d8e24172a4ae3541361605e4\"}],\"key\":\"4465c31109ec471e8dd26e9d40b4a76f\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Data, [UInt8]\",\"marks\":[]}],\"key\":\"a9b278cba08f4e5cb8424fc209a72137\"}],\"key\":\"9c245801e8b7482ea320f3c826f6426f\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"String\",\"marks\":[]}],\"key\":\"4cde2169f79141a6a5ca25c9416327fe\"}],\"key\":\"094ba9990a4b4cd8aec53eb304124ebb\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"Date\",\"marks\":[]}],\"key\":\"8f1f888a694e40e7864e15622306dc8a\"}],\"key\":\"79c2309446dc45e8b3524b71f6e9d18e\"}],\"key\":\"88918b4c9c3d45b9b57af30fedb64886\"},\"style\":[\"w-full mx-auto decoration-primary/6\",\"max-w-3xl\",[\"page-api-block:ml-0\"]],\"inlines\":[]}],[\"$\",\"h2\",null,{\"id\":\"enums\",\"className\":\"text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"[1] mt-[1em]\",\"children\":[\"$\",\"a\",null,{\"href\":\"#enums\",\"aria-label\":\"Direct link to heading\",\"className\":\"inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight\",\"children\":[\"$\",\"$L3f\",null,{\"icon\":\"hashtag\",\"className\":\"w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4\"}]}]}],[\"$\",\"div\",null,{\"className\":\"grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Enums\"}]]]}]]}],[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"ObjectBox has built-in support for \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"RawRepresentable\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" enums. All that is needed is an annotation to tell ObjectBox to convert an enum:\"}]]]}],[\"$\",\"$L57\",null,{\"block\":{\"object\":\"block\",\"type\":\"code\",\"isVoid\":false,\"data\":{\"syntax\":\"swift\"},\"nodes\":[{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"enum TestEnum: Int {\",\"marks\":[]}],\"key\":\"fb39669957e3417ea3c136a69b3c785c\"}],\"key\":\"7852bd7a1ed54fb5801a5eb3d32702ee\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case unknown = 0\",\"marks\":[]}],\"key\":\"6d66eef146da4d58b07754865b900892\"}],\"key\":\"2cd7a898986846ddb6f61c2bcdee8d2e\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case first = 100\",\"marks\":[]}],\"key\":\"b7b1fba55b094995966dca90472899de\"}],\"key\":\"ce17c8ff0a8c406e8cb3e331d745aacc\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case second = 200\",\"marks\":[]}],\"key\":\"3befc540897240acb75751b286c3612b\"}],\"key\":\"d1f80a099ee94baba2bac01f87da28ee\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case third = 300\",\"marks\":[]}],\"key\":\"75772eaf568240eb9670ea69a770071f\"}],\"key\":\"cb5f621dcac14faca6e612aa02fd795d\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"604116e881aa4e4bba020aa3e3ea0d04\"}],\"key\":\"8d8c77dc603b4e048a710568d27a7e64\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"\",\"marks\":[]}],\"key\":\"64f740583f2348fda7129b273478f46c\"}],\"key\":\"3c5f4a3693e047e6b52993390a91c2e1\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"class EnumEntity: Entity {\",\"marks\":[]}],\"key\":\"6fa1fb12c5f84b8c954d788c217d31d1\"}],\"key\":\"de4ffba9d6fa4c29ab48a458ff55d26e\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var id: Id = 0\",\"marks\":[]}],\"key\":\"ce78849439f346f695e68a9e319cab56\"}],\"key\":\"a749b3c5e2cc4925acf273763edce7a4\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" // objectbox: convert = { \\\"default\\\": \\\".unknown\\\" }\",\"marks\":[]}],\"key\":\"cc586097ca5a4a299fcb30dfbda0bc19\"}],\"key\":\"0acd0f128cdc4775b5a1859989c9eb19\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var custom: TestEnum\",\"marks\":[]}],\"key\":\"b2aec3a883544d879269e5250a0296d9\"}],\"key\":\"1554c0a0c26b494eae9c9ac31244cab1\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"65ed5477ef33422287bed67b93b9829b\"}],\"key\":\"9e98fe64accf49b1b15aa37504f8d1b9\"}],\"key\":\""])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"f1ecba16f7a4431b85afbb9cc195bcb6\"},\"style\":[\"w-full mx-auto decoration-primary/6\",\"max-w-3xl\",\"$58\"],\"inlines\":[]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Specify a default value to use when the value in the database is missing or invalid as the \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"default\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" argument to the \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"// objectbox: convert\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\" annotation.\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"A database can have a missing value even for non-optional fields if you add a property to your entity and then open a database that was written by an older version of your app that did not have that field yet. A database may contain an invalid value if an older version of your app opens a file created by a newer version of your app that has added a new case to this enum.\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"When persisting enums, there are a couple of best practices:\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"ul\",null,{\"className\":\"space-y-2 w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"li\",null,{\"className\":\"leading-normal flex items-start\",\"children\":[[\"$\",\"div\",null,{\"className\":\"text-base leading-normal flex items-center justify-center mr-1 min-h-[1lh] min-w-6 text-tint\",\"children\":[\"$\",\"div\",null,{\"className\":\"before:font-var before:content-[--pseudoBefore--content]\",\"style\":{\"--pseudoBefore--content\":\"'•'\",\"--font-family\":\"Arial\",\"fontSize\":\"min(1.5em, 24px)\",\"lineHeight\":1}}]}],[\"$\",\"div\",null,{\"className\":\"space-y-2 flex flex-col flex-1\",\"children\":[[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full decoration-primary/6 max-w-3xl min-h-[1lh] flip-heading-hash [\u0026:is(h2)\u003ediv]:mt-0 [\u0026:is(h3)\u003ediv]:mt-0 [\u0026:is(h4)\u003ediv]:mt-0 mx-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full decoration-primary/6 max-w-3xl min-h-[1lh] flip-heading-hash [\u0026:is(h2)\u003ediv]:mt-0 [\u0026:is(h3)\u003ediv]:mt-0 [\u0026:is(h4)\u003ediv]:mt-0 mx-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"Always assign explicit rawValues t"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"o each enum case:\"}]}],[\"$\",\"$56\",\"1\",{\"children\":\" Implicitly-assigned \"}],[\"$\",\"$56\",\"2\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"rawValue\"}]}],[\"$\",\"$56\",\"3\",{\"children\":\"s are unstable, and can easily change the next time you edit your enum definitions.\"}]]]}]}]]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"li\",null,{\"className\":\"leading-normal flex items-start\",\"children\":[[\"$\",\"div\",null,{\"className\":\"text-base leading-normal flex items-center justify-center mr-1 min-h-[1lh] min-w-6 text-tint\",\"children\":[\"$\",\"div\",null,{\"className\":\"before:font-var before:content-[--pseudoBefore--content]\",\"style\":{\"--pseudoBefore--content\":\"'•'\",\"--font-family\":\"Arial\",\"fontSize\":\"min(1.5em, 24px)\",\"lineHeight\":1}}]}],[\"$\",\"div\",null,{\"className\":\"space-y-2 flex flex-col flex-1\",\"children\":[[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full decoration-primary/6 max-w-3xl min-h-[1lh] flip-heading-hash [\u0026:is(h2)\u003ediv]:mt-0 [\u0026:is(h3)\u003ediv]:mt-0 [\u0026:is(h4)\u003ediv]:mt-0 mx-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full decoration-primary/6 max-w-3xl min-h-[1lh] flip-heading-hash [\u0026:is(h2)\u003ediv]:mt-0 [\u0026:is(h3)\u003ediv]:mt-0 [\u0026:is(h4)\u003ediv]:mt-0 mx-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"Prepare for the unknown:\"}]}],[\"$\",\"$56\",\"1\",{\"children\":\" Define an \"}],[\"$\",\"$56\",\"2\",{\"children\":[\"$\",\"i\",null,{\"className\":\"font-italic\",\"children\":\"unknown\"}]}],[\"$\",\"$56\",\"3\",{\"children\":\" enum value and specify it as the default. It can serve to handle missing or unknown values. This will allow you to gracefully handle cases like an old enum value getting removed without having to constantly unwrap optionals.\"}]]]}]}]]}]]}]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",nu"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"ll,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"You can leave away the \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"\\\"default\\\"\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" annotation if your property is an optional. In that case \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"nil\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\" will be the automatic default. \"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"enums-in-queries\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"h2\",null,{\"id\":\"enums-in-queries\",\"className\":\"text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]\",\"children\":[\"$\",\"a\",null,{\"href\":\"#enums-in-queries\",\"aria-label\":\"Direct link to heading\",\"className\":\"inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight\",\"children\":[\"$\",\"$L3f\",null,{\"icon\":\"hashtag\",\"className\":\"w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4\"}]}]}],[\"$\",\"div\",null,{\"className\":\"grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Enums in queries\"}]]]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":[\"$\",\""])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"QueryBuilder\"}]}],[\"$\",\"$56\",\"1\",{\"children\":\" is unaware of enums. You have to \"}],[\"$\",\"$56\",\"2\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"use the enum's rawValue for queries\"}]}],[\"$\",\"$56\",\"3\",{\"children\":\".\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"So for the \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"EnumEntity\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" example above you would get users with the \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"custom\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\" property of \"}],[\"$\",\"$56\",\"5\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"second\"}]}],[\"$\",\"$56\",\"6\",{\"children\":\" with the query condition \"}],[\"$\",\"$56\",\"7\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"box.query { User.role == TestEnum.second.rawValue }\"}]}],[\"$\",\"$56\",\"8\",{\"children\":\".\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"custom-property-converters\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"h2\",null,{\"id\":\"custom-property-converters\",\"className\":\"text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]\",\"children\":[\"$\",\"a\",null,{\"href\":\""])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"#custom-property-converters\",\"aria-label\":\"Direct link to heading\",\"className\":\"inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight\",\"children\":[\"$\",\"$L3f\",null,{\"icon\":\"hashtag\",\"className\":\"w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4\"}]}]}],[\"$\",\"div\",null,{\"className\":\"grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Custom Property Converters\"}]]]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"To add support for a custom type, you can map properties to one of the built-in types using an \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"// objectbox: convert\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" annotation. You also need to provide a class to serve as a property converter.\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"For example, you could define a color in your entity using a custom \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"Color\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" class and map it to a \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"String\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\". \"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",n"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"ull,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Here is an example mapping an \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"enum\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" to an \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"Int\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\" manually:\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"$L57\",null,{\"block\":{\"object\":\"block\",\"type\":\"code\",\"isVoid\":false,\"data\":{\"syntax\":\"swift\"},\"nodes\":[{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"class RoleConverter {\",\"marks\":[]}],\"key\":\"663736b8ea31444aa0ba829bc5daee3c\"}],\"key\":\"3fd805b804d64781912ce2c49d4a6441\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" static func convert(_ enumerated: Role) -\u003e Int {\",\"marks\":[]}],\"key\":\"406dfaa33fd34b9789d44e4f6ca6ffd9\"}],\"key\":\"f74d4b159f1142aebfaa2862ece9c48d\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" return enumerated.rawValue\",\"marks\":[]}],\"key\":\"be45fb77e28e4de2acc4d6a1e84a1765\"}],\"key\":\"3d3dc530034d4d8d8b64eee6da055932\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" }\",\"marks\":[]}],\"key\":\"ca453b87687d4b25a1af9d59987a1e36\"}],\"key\":\"5161df2672ed4ffeb941994594ee3ee7\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" static func convert(_ num: Int?) -\u003e Role {\",\"marks\":[]}],\"key\":\"f0b8633da3ae47f0b922c773cf70c71a\"}],\"key\":\"8ab4d40b8d53491382713c77e00dc9b1\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" guard let num = num else { return Role.default }\",\"marks\":[]}],\"key\":\"6e47e5c0a8844ef6964d8708e284fb17\"}],\"key\":\"b4e2b9d749ad48899509748922a4c642\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" return TestEnum(rawValue: num) ?? Role.default\""])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,",\"marks\":[]}],\"key\":\"a219bb6d74d8406781de3d3fd7eb574f\"}],\"key\":\"f7d85f80cae5476396f597d894536617\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" }\",\"marks\":[]}],\"key\":\"b6aafa20aa7b4ea39ba476bdbb8d7813\"}],\"key\":\"5eec5c3703e54aa5a0c8ff6963ce366c\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"0843a41b7d1c4a7cafd2d7209e1977fc\"}],\"key\":\"a02b3b5daee74d0b84dfe5b93b379320\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"\",\"marks\":[]}],\"key\":\"bc6fd793d1774e8bbddc3bd9169d0906\"}],\"key\":\"a0eaa1f7371c453b8b5fc67b2239140a\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"enum Role: Int {\",\"marks\":[]}],\"key\":\"1ebb0858450a41fea13d220818dd0e41\"}],\"key\":\"990405d9611f4de6bc052ca50fb78f59\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case default = 0\",\"marks\":[]}],\"key\":\"5e2c119e311c476185e8dbc6f6ab1475\"}],\"key\":\"6ca4630bb0c346af8c77840338fe394d\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case author = 1\",\"marks\":[]}],\"key\":\"a6850d0402dd497f8303f1b369b16174\"}],\"key\":\"7627de73882140c3b1f94e411db1f173\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" case admin = 2\",\"marks\":[]}],\"key\":\"08ebd93c546d42149ed3fd1834df0cf0\"}],\"key\":\"a8fafd78528e42a8977b4738e3599907\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"de3647740c79462cba72d36212424f7a\"}],\"key\":\"4ce956955562406790cfbc61c6ed4cfd\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"\",\"marks\":[]}],\"key\":\"4cd61c5d6a28463d81a4b58d7952da15\"}],\"key\":\"20a889395525442fb37576a59de1b4b7\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"class User: Entity, CustomDebugStringConvertible {\",\"marks\":[]}],\"key\":\"d88feafb431b4ab99b8cade70e146d42\"}],\"key\":\"898587747e0642ae96f245751255beac\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var id: Id = 0\",\"marks\":[]}],\"key\":\"11670ce3330248aaa593aae27a3aed36\"}],\"key\":\"8e662c6dab3e4ee3ad0eeeab587b6417\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" // objectbox: convert = { \\\"dbType\\\": \\\"Int\\\", \\\"converter\\\": \\\"RoleConverter\\\" }\",\"marks\":[]}],\"key\":\"7401726595e9401981b627a5dbd67bd1\"}],\"key\":\"0a9dc3df70934bbcaad7e24ac4372e86\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var role = Role.default\",\"marks\":[]}],\"key\":\"92d3825c2c8340b594c325a86a2e15fa\"}],\"key\":\"9061c0be24fa4511b41095d538b52519\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"86fba9d94c2846c588a22ca65f0d73a7\"}],\"key\":\"8ca12709e2f5465ea800bc5afa198945\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"\",\"marks\":[]}],\"key\":\"a4797739d3d64e5e920dbdd34667aac5\"}],\"key\":\"a22db0d43f884c46ae07e0b5f897436a\"}],\"key\":\"45959f7451324f3dbe90f54a280b8500\"},\"style\":[\"w-full mx-auto decoration-primary/6\",\"max-w-3xl\",\"$58\"],\"inlines\":[]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"things-to-look-out-for\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hid"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"den relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"h3\",null,{\"id\":\"things-to-look-out-for\",\"className\":\"text-2xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[0.75em]\",\"children\":[\"$\",\"a\",null,{\"href\":\"#things-to-look-out-for\",\"aria-label\":\"Direct link to heading\",\"className\":\"inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-snug\",\"children\":[\"$\",\"$L3f\",null,{\"icon\":\"hashtag\",\"className\":\"w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4\"}]}]}],[\"$\",\"div\",null,{\"className\":\"grid-area-1-1 z-[1] justify-self-start text-left leading-snug mt-[0.75em]\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Things to look out for\"}]]]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Be sure to \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"correctly handle nil\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" and \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"invalid values\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\": If you add a field to your entity later on, old records in a database will not have a value for this field. Your converter will be handed a \"}],[\"$\",\"$56\",\"5\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"nil\"}]}],[\"$\",\"$56\",\"6\",{\"children\":\" value for those instead. Or if a user opens a database created with a newer version of your app that supports additional values for an enum with an older version that doesn't know about these, you will have to supply a fallback value from your converter (In the above example, those are the two \"}],[\"$\",\"$56\",\"7\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"Role.default\"}]}],[\"$\",\"$56\",\"8\",{\"children\":\" returns in \"}],[\"$\",\"$56\",\"9\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"convert(_: Int?)\"}]}],[\"$\",\"$56\",\"10\",{\"children\":\").\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"You must \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"not interact with the database\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" (such as using \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"Box\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\" or \"}],[\"$\",\"$56\",\"5\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"Store\"}]}],[\"$\",\"$56\",\"6\",{\"children\":\") inside the converter. The converter methods are called within a transaction, so for example getting or putting entities into a box will fail.\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"If you implement your database-to-class converter method to not take an optional, ObjectBox will supply an appropriate 0 value for missing values, Same as it would for the underlying type without a converter.\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform "])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"div\",null,{\"className\":\"hint p-4 transition-colors rounded-md straight-corners:rounded-none bg-tint print-mode:!bg-tint theme-muted:bg-tint-base theme-bold-tint:bg-tint-base theme-gradient:bg-tint-12/1 border-tint [\u0026_.can-override-bg]:bg-tint-active [\u0026_.can-override-text]:text-tint-strong w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"flex flex-row\",\"children\":[[\"$\",\"$L3f\",null,{\"icon\":\"circle-info\",\"className\":\"size-5 mr-4 mt-0.5 leading-normal text-primary\"}],[\"$\",\"div\",null,{\"className\":\"flex-1 space-y-4 [\u0026_.hint]:border [\u0026_pre]:border\",\"children\":[[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl [\u0026_a]:text-primary [\u0026_a:hover]:text-primary-strong flip-heading-hash\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl [\u0026_a]:text-primary [\u0026_a:hover]:text-primary-strong flip-heading-hash\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Note: Make sure the converter is thread safe, because it might be called concurrently on multiple entities.\"}]]]}]}]]}]]}]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"list-array-types\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"h2\",null,{\"id\":\"list-array-types\",\"className\":\"text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]\",\"children\":[\"$\",\"a\",null,{\"href\":\"#list-array-types\",\"aria-label\":\"Direct link to heading\",\"className\":\"inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight\",\"children\":[\"$\",\"$L3f\",null,{\"icon\":\"hashtag\",\"className\":\"w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4\"}]}]}],[\"$\",\"div\",null,{\"className\":\"grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"List/Array types\"}]]]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"At the moment it is not possible to use arrays with converters, apart from \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"[UInt8]\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\", which is treated like \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"Data\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\". However, you could convert a List of \"}],[\"$\",\"$56\",\"5\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"String\"}]}],[\"$\",\"$56\",\"6\",{\"children\":\"s to a JSON array resulting in a single string for the database.\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Alternately, you can replace arrays with relations and create a new entity for the array elements. So, for example instead of\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"chil"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"dren\":[\"$\",\"$L57\",null,{\"block\":{\"object\":\"block\",\"type\":\"code\",\"isVoid\":false,\"data\":{\"syntax\":\"swift\"},\"nodes\":[{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"class Document {\",\"marks\":[]}],\"key\":\"ec07e21858b64516837f40942930bcbc\"}],\"key\":\"2bce6ddc80f344e79a103f380e6e3041\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var id: Id = 0\",\"marks\":[]}],\"key\":\"e12666a2f6334872859deaa9b3abd938\"}],\"key\":\"30981a85ab1d42049ab1d80c14bd0518\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var userNames: [String] // ObjectBox doesn't know how to store this\",\"marks\":[]}],\"key\":\"2c7f2ff184904cd8affbd700f370597c\"}],\"key\":\"afbc4639391b490a87d6dc8e770bba9b\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"c90f66b350d948f38216489c78a2ab55\"}],\"key\":\"cfede773e1d04d6fb65e6a1fc3643524\"}],\"key\":\"ffa51f3507f94630a9384beab83e57e5\"},\"style\":[\"w-full mx-auto decoration-primary/6\",\"max-w-3xl\",\"$58\"],\"inlines\":[]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"You would have two entities:\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"skeleton-paragraph\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md [height:calc(15rem-1px)] [max-width:calc(48rem-1px)] w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_48px_48px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"$L57\",null,{\"block\":{\"object\":\"block\",\"type\":\"code\",\"isVoid\":false,\"data\":{\"syntax\":\"swift\"},\"nodes\":[{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"class Document {\",\"marks\":[]}],\"key\":\"3fd7b41d452947558b0ba67094d87714\"}],\"key\":\"4e96cbc7b87e48f086b254f378b495c1\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var id: Id = 0\",\"marks\":[]}],\"key\":\"d681c33dd66a41ea8762a7b68c601bb8\"}],\"key\":\"2402ec9b110b4422acb6b86896150a54\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var users: ToMany\u003cUser\u003e\",\"marks\":[]}],\"key\":\"f34095dd7f624d6ca17311f538667045\"}],\"key\":\"d7ac7685"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"17f140d6831f358ae55f0680\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"5b703cb6013d4239b30677150ac00bac\"}],\"key\":\"8b7eda04aff74190a1f0930a9dcee535\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"\",\"marks\":[]}],\"key\":\"48120836e5d34b5f85ba9efe38a9fc59\"}],\"key\":\"1ca1969910da4daa9ca2c7ff6b768de7\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"class User {\",\"marks\":[]}],\"key\":\"5bdf93d204b049cf9fee30777c34daaa\"}],\"key\":\"69245c63efce4b2aa39264993824d608\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var id: Id = 0\",\"marks\":[]}],\"key\":\"900e247dd0174f9c98893be459e318fb\"}],\"key\":\"5336867a6b54475bbe8e53bd5cde9ced\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var document: ToOne\u003cDocument\u003e = nil\",\"marks\":[]}],\"key\":\"2f7abeaa73524ccf9b9636ae4664e4e6\"}],\"key\":\"2ccf5580d06049a7ba96470ecfa274a9\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\" var name: String\",\"marks\":[]}],\"key\":\"5a8982fcbc3647c5a653fce27f6e18a9\"}],\"key\":\"17131cadc49747ce95cabb5330b1dfc8\"},{\"object\":\"block\",\"type\":\"code-line\",\"isVoid\":false,\"data\":{},\"nodes\":[{\"object\":\"text\",\"leaves\":[{\"object\":\"leaf\",\"text\":\"}\",\"marks\":[]}],\"key\":\"1fdd9a06371a4aac8a49df2bd0d403a9\"}],\"key\":\"1cbc57887d6843998dc5283846a9e74f\"}],\"key\":\"292c87f06a764dbfb5bf34cb7b3d32db\"},\"style\":[\"w-full mx-auto decoration-primary/6\",\"max-w-3xl\",\"$58\"],\"inlines\":[]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"custom-types-in-queries\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[47px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"h2\",null,{\"id\":\"custom-types-in-queries\",\"className\":\"text-3xl font-semibold heading group relative grid w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"grid grid-area-1-1 relative -ml-6 w-7 border-0 opacity-0 group-hover:opacity-[0] group-focus:opacity-[0] md:group-hover:md:opacity-[1] md:group-focus:md:opacity-[1] mt-[1em]\",\"children\":[\"$\",\"a\",null,{\"href\":\"#custom-types-in-queries\",\"aria-label\":\"Direct link to heading\",\"className\":\"inline-flex h-full items-start dark:shadow-none dark:ring-0 leading-tight\",\"children\":[\"$\",\"$L3f\",null,{\"icon\":\"hashtag\",\"className\":\"w-3.5 h-[1lh] transition-colors text-transparent group-hover:text-tint-subtle contrast-more:group-hover:text-tint-strong lg:w-4\"}]}]}],[\"$\",\"div\",null,{\"className\":\"grid-area-1-1 z-[1] justify-self-start text-left leading-tight mt-[1em]\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"Custom types in queries\"}]]]}]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"QueryBuilder\"}]}],[\"$\",\"$56\",\"1\",{\"children\":\" is unaware of custom types. You have to \"}],[\"$\",\"$56\",\"2\",{\"children\":[\"$\",\"strong\",null,{\"className\":\"font-bold\",\"children\":\"use the raw database value for queries\"}]}],[\"$\",\"$56\",\"3\",{\"children\":\".\"}]]]}]}],[\"$\",\"$22\",null,{\"fallback\":[\"$\",\"div\",null,{\"id\":\"$undefined\",\"role\":\"status\",\"aria-busy\":true,\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[\"$\",\"div\",null,{\"className\":\"ring-1 ring-tint-subtle overflow-hidden relative grid rounded-md h-[35px] [max-width:calc(48rem-1px)]\",\"children\":[\"$\",\"div\",null,{\"className\":\"w-full bg-tint grid grid-area-1-1 overflow-hidden [mask:conic-gradient(from_90deg_at_1px_1px,_#0000_90deg,_#0003_0)_calc(50%+1px)_calc(0%+47px)_/_12px_12px]\",\"children\":[\"$\",\"div\",null,{\"className\":\"aspect-square from-tint-solid to-transparent grid-area-1-1 relative origin-[50%_50%] top-[50%] self-stretch bg-transparent will-change-transform animate-[rotateLoop_2s_linear_infinite] [background-image:conic-gradient(from_-90deg_at_50%_50%,_var(--tw-gradient-stops)_0deg,_var(--tw-gradient-stops)_90deg,_var(--tw-gradient-stops)_280deg)]\"}]}]}]}],\"children\":[\"$\",\"p\",null,{\"className\":\"w-full mx-auto decoration-primary/6 max-w-3xl page-api-block:ml-0\",\"children\":[[[\"$\",\"$56\",\"0\",{\"children\":\"So for the \"}],[\"$\",\"$56\",\"1\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"User\"}]}],[\"$\",\"$56\",\"2\",{\"children\":\" example above you would get users with the role of \"}],[\"$\",\"$56\",\"3\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"admin\"}]}],[\"$\",\"$56\",\"4\",{\"children\":\" with the query condition \"}],[\"$\",\"$56\",\"5\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"box.query { User.role == Role.admin.rawValue }\"}]}],[\"$\",\"$56\",\"6\",{\"children\":\" or \"}],[\"$\",\"$56\",\"7\",{\"children\":[\"$\",\"code\",null,{\"className\":\"py-[1px] px-1.5 min-w-[1.625rem] justify-center items-center ring-1 ring-inset ring-tint bg-tint rounded text-[.875em] leading-[calc(max(1.20em,1.25rem))]\",\"children\":\"box.query { User.role == 2 }\"}]}],[\"$\",\"$56\",\"8\",{\"children\":\".\"}]]]}]}]]}]}],\"$L59\",[\"$\",\"div\",null,{\"className\":\"flex flex-row flex-wrap gap-4 items-center mt-6 max-w-3xl mx-auto page-api-block:ml-0 text-tint contrast-more:text-tint-strong\",\"children\":[[\"$\",\"p\",null,{\"className\":\"text-sm mr-auto\",\"children\":[[[\"$\",\"$56\",\"string-0\",{\"children\":\"Last updated \"}],[\"$\",\"$56\",\"arg-0\",{\"children\":[\"$\",\"$L5a\",null,{\"value\":\"2024-07-29T10:44:15.507Z\"}]}]],\"\"]}],[\"$\",\"$L5b\",null,{\"className\":\"xl:hidden\",\"orientation\":\"horizontal\",\"pageId\":\"-Lj_jqJGRib432ozwbTQ\"}]]}]]}],[\"$\",\"$L1e\",null,{\"pageId\":\"-Lj_jqJGRib432ozwbTQ\",\"revisionId\":\"6NMq13OwEur26j7VFZaS\"}]]]}],[\"$\",\"$22\",null,{\"fallback\":null,\"children\":[\"$\",\"$L5c\",null,{\"withSections\":false}]}]]\n15:[[\"$\",\"meta\","])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"name\":\"color-scheme\",\"content\":\"light\"}],[\"$\",\"meta\",\"2\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"3\",{\"children\":\"Enums and Custom Types | ObjectBox Swift\"}],[\"$\",\"meta\",\"4\",{\"name\":\"description\",\"content\":\"ObjectBox Swift supports enums and custom types: here's how.\"}],[\"$\",\"meta\",\"5\",{\"name\":\"generator\",\"content\":\"GitBook (d222c11)\"}],[\"$\",\"meta\",\"6\",{\"name\":\"robots\",\"content\":\"index, follow\"}],[\"$\",\"link\",\"7\",{\"rel\":\"canonical\",\"href\":\"https://swift.objectbox.io/advanced/custom-types\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:title\",\"content\":\"Enums and Custom Types | ObjectBox Swift\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:description\",\"content\":\"ObjectBox Swift supports enums and custom types: here's how.\"}],[\"$\",\"meta\",\"10\",{\"property\":\"og:image\",\"content\":\"https://swift.objectbox.io/~gitbook/ogimage/-Lj_jqJGRib432ozwbTQ\"}],[\"$\",\"meta\",\"11\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"12\",{\"name\":\"twitter:title\",\"content\":\"Enums and Custom Types | ObjectBox Swift\"}],[\"$\",\"meta\",\"13\",{\"name\":\"twitter:description\",\"content\":\"ObjectBox Swift supports enums and custom types: here's how.\"}],[\"$\",\"meta\",\"14\",{\"name\":\"twitter:image\",\"content\":\"https://swift.objectbox.io/~gitbook/ogimage/-Lj_jqJGRib432ozwbTQ\"}],[\"$\",\"link\",\"15\",{\"rel\":\"icon\",\"href\":\"https://2249461369-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/spaces%2F-LR7sVOoZyL01-NkNVQJ%2Favatar.png?generation=1542042291053653\u0026alt=media\",\"type\":\"image/png\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"link\",\"16\",{\"rel\":\"icon\",\"href\":\"https://2249461369-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/spaces%2F-LR7sVOoZyL01-NkNVQJ%2Favatar.png?generation=1542042291053653\u0026alt=media\",\"type\":\"image/png\",\"media\":\"(prefers-color-scheme: dark)\"}],[\"$\",\"meta\",\"17\",{\"name\":\"next-size-adjust\"}]]\nd:null\n5e:I[2554,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f7477490b7af.js\",\"5572\",\"static/chunks/5572-d068cc2bc8e73d12.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"8843\",\"static/chunks/8843-f0d01ada04c351a9.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"4168\",\"static/chunks/4168-597f57f1cfad2671.js\",\"4722\",\"static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js\"],\"Ad\"]\n53:[\"$\",\"aside\",null,{\"className\":\"group/aside hidden xl:flex flex-col basis-56 grow-0 shrink-0 break-anywhere text-tint contrast-more:text-tint-strong sticky lg:top-0 lg:max-h-screen site-header:lg:top-16 site-header:lg:max-h-[calc(100vh_-_4rem)] site-header-sections:lg:top-[6.75rem] site-header-sections:lg:max-h-[calc(100vh_-_6.75rem)] page-api-block:xl:max-2xl:z-10 page-api-block:xl:max-2xl:fixed page-api-block:xl:max-2xl:right-8 page-api-block:xl:max-2xl:w-56 page-api-block:xl:max-2xl:bg-tint/9 page-api-block:xl:max-2xl:contrast-more:bg-tint page-api-block:xl:max-2xl:backdrop-blur-lg page-api-block:xl:max-2xl:border page-api-block:xl:max-2xl:border-tint page-api-block:xl:max-2xl:hover:shadow-lg page-api-block:xl:max-2xl:hover:shadow-tint-12/1 page-api-block:xl:max-2xl:dark:hover:shadow-tint-1/1 page-api-block:xl:max-2xl:rounded-md page-api-block:xl:max-2xl:h-auto page-api-block:xl:max-2xl:my-8 page-api-block:p-2\",\"children\":[[[\"$\",\"div\",null,{\"className\":\"hidden page-api-block:xl:max-2xl:flex text-xs tracking-wide font-semibold uppercase flex-row items-center gap-2\",\"children\":[[\"$\",\"$L3f\",null,{\"icon\":\"block-quote\",\"className\":\"size-3\"}],\"On this page\",[\"$\",\"$L3f\",null,{\"icon\":\"chevron-down\",\"className\":\"size-3 opacity-6 ml-auto page-api-block:xl:max-2xl:group-hover/aside:hidden\"}]]}],[\"$\",\"div\",null,{\"className\":\"overflow-y-auto overflow-x-visible flex flex-col shrink pb-12 sticky lg:top:0 site-header:lg:top-16 site-header-sections:lg:top-[6.75rem] gap-6 pt-8 page-api-block:xl:max-2xl:py-0 page-api-block:xl:max-2xl:hidden page-api-block:xl:max-2xl:group-hover/aside:flex\",\"child"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"ren\":[[\"$\",\"$22\",null,{\"fallback\":null,\"children\":\"$L5d\"}],[\"$\",\"div\",null,{\"className\":\"flex flex-col gap-3 sidebar-list-default:px-3 border-t first:border-none border-tint-subtle py-4 first:pt-0 page-api-block:xl:max-2xl:px-3 empty:hidden\",\"children\":[[\"$\",\"$22\",null,{\"fallback\":null,\"children\":[\"$\",\"$L5b\",null,{\"pageId\":\"-Lj_jqJGRib432ozwbTQ\",\"className\":\"mt-2\"}]}],null,[\"$\",\"div\",null,{\"children\":[\"$\",\"a\",null,{\"href\":\"/~gitbook/pdf?page=-Lj_jqJGRib432ozwbTQ\u0026only=yes\",\"className\":\"flex flex-row items-center text-sm hover:text-tint-strong py-2\",\"children\":[[\"$\",\"$L3f\",null,{\"icon\":\"file-pdf\",\"className\":\"size-4 mr-1.5\"}],\"Export as PDF\"]}]}]]}]]}]],[\"$\",\"div\",null,{\"className\":\"pb-4 sticky bottom-0 bg-tint-base theme-muted:bg-tint-subtle theme-bold-tint:bg-tint-subtle theme-gradient:bg-gradient-primary theme-gradient-tint:bg-gradient-tint z-10 mt-auto flex flex-col page-api-block:xl:max-2xl:pb-0 page-api-block:xl:max-2xl:hidden page-api-block:xl:max-2xl:group-hover/aside:flex page-api-block:xl:max-2xl:bg-transparent\",\"children\":[null,[\"$\",\"$L5e\",null,{\"zoneId\":null,\"placement\":\"aside\",\"spaceId\":\"-LR7sVOoZyL01-NkNVQJ\",\"siteAdsStatus\":\"$undefined\",\"ignore\":false,\"style\":\"$undefined\"}]]}]]}]\n55:[\"$\",\"header\",null,{\"className\":\"max-w-3xl mx-auto mb-6 space-y-3 page-api-block:ml-0\",\"children\":[[\"$\",\"nav\",null,{\"children\":[\"$\",\"ol\",null,{\"className\":\"flex flex-wrap items-center gap-2\",\"children\":[[\"$\",\"$56\",\"-LRIAR3JxQlzIta8LEag\",{\"children\":[[\"$\",\"li\",\"-LRIAR3JxQlzIta8LEag\",{\"children\":[\"$\",\"$L3e\",null,{\"href\":\"/advanced\",\"children\":[\"$undefined\",\"Advanced\"],\"className\":\"underline-offset-2 decoration-primary/6 text-primary-subtle hover:text-primary contrast-more:text-primary contrast-more:hover:text-primary-strong transition-colors no-underline hover:underline text-xs tracking-wide font-semibold uppercase flex items-center gap-1.5 contrast-more:underline contrast-more:decoration-current\"}]}],false]}]]}]}],[\"$\",\"h1\",null,{\"className\":\"text-4xl font-bold flex items-center gap-4\",\"children\":[\"$undefined\",\"Enums and Custom Types\"]}],[\"$\",\"p\",null,{\"className\":\"text-lg text-tint\",\"children\":\"ObjectBox Swift supports enums and custom types: here's how.\"}]]}]\n59:[\"$\",\"div\",null,{\"className\":\"flex flex-col md:flex-row mt-6 gap-2 max-w-3xl mx-auto page-api-block:ml-0 text-tint\",\"children\":[[\"$\",\"$L3e\",null,{\"href\":\"/advanced/macos\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LpmOffKBkN9wob34g3s\"},\"position\":\"content\"}},\"className\":\"group text-sm p-2.5 flex gap-4 flex-1 flex-row-reverse items-center pl-4 border border-tint-subtle rounded straight-corners:rounded-none hover:border-primary text-pretty md:p-4 md:text-base\",\"children\":[[\"$\",\"span\",null,{\"className\":\"flex flex-col flex-1 text-right\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-xs\",\"children\":\"Previous\"}],[\"$\",\"span\",null,{\"className\":\"text-tint-strong group-hover:text-primary line-clamp-2\",\"children\":\"The Sandbox on macOS\"}]]}],[\"$\",\"$L3f\",null,{\"icon\":\"chevron-left\",\"className\":\"hidden size-4 text-tint-subtle contrast-more:text-tint-strong group-hover:text-primary md:block\"}]]}],[\"$\",\"$L3e\",null,{\"href\":\"/advanced/data-model-updates\",\"insights\":{\"type\":\"link_click\",\"link\":{\"target\":{\"kind\":\"page\",\"page\":\"-LTgQwiejsXHS-gvskrb\"},\"position\":\"content\"}},\"className\":\"group text-sm p-2.5 flex gap-4 flex-1 flex-row items-center pr-4 border border-tint-subtle rounded straight-corners:rounded-none hover:border-primary text-pretty md:p-4 md:text-base\",\"children\":[[\"$\",\"span\",null,{\"className\":\"flex flex-col flex-1\",\"children\":[[\"$\",\"span\",null,{\"className\":\"text-xs\",\"children\":\"Next\"}],[\"$\",\"span\",null,{\"className\":\"text-tint-strong group-hover:text-primary line-clamp-2\",\"children\":\"Data Model Updates\"}]]}],[\"$\",\"$L3f\",null,{\"icon\":\"chevron-right\",\"className\":\"hidden size-4 text-tint-subtle contrast-more:text-tint-strong group-hover:text-primary md:block\"}]]}]]}]\n5f:I[19522,[\"2622\",\"static/chunks/2622-d4284e72be418b70.js\",\"7609\",\"static/chunks/7609-5073804535dff38c.js\",\"2999\",\"static/chunks/2999-584f9b8ecc233405.js\",\"7993\",\"static/chunks/7993-8ef7f"])</script><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">self.__next_f.push([1,"7477490b7af.js\",\"5572\",\"static/chunks/5572-d068cc2bc8e73d12.js\",\"5890\",\"static/chunks/5890-3ab2501336ce1348.js\",\"8843\",\"static/chunks/8843-f0d01ada04c351a9.js\",\"983\",\"static/chunks/983-4fad0180b495256f.js\",\"4055\",\"static/chunks/4055-7666845ca98fb1a4.js\",\"4168\",\"static/chunks/4168-597f57f1cfad2671.js\",\"4722\",\"static/chunks/app/middleware/(site)/(content)/%5B%5B...pathname%5D%5D/page-a1cb1652fa802fac.js\"],\"ScrollSectionsList\"]\n5d:[\"$\",\"$L5f\",null,{\"sections\":[{\"id\":\"enums\",\"title\":\"Enums\",\"depth\":1},{\"id\":\"enums-in-queries\",\"title\":\"Enums in queries\",\"depth\":1},{\"id\":\"custom-property-converters\",\"title\":\"Custom Property Converters\",\"depth\":1},{\"id\":\"things-to-look-out-for\",\"title\":\"Things to look out for\",\"depth\":2},{\"id\":\"list-array-types\",\"title\":\"List/Array types\",\"depth\":1},{\"id\":\"custom-types-in-queries\",\"title\":\"Custom types in queries\",\"depth\":1}]}]\n"])</script><div hidden id="S:0"><ul class="sidebar-list-line:border-l border-tint-subtle"><li class="flex flex-row relative h-fit mt-2"><a href="#enums" class="relative flex flex-row items-baseline z-10 text-sm w-full py-1 px-3 transition-all duration-200 rounded-md straight-corners:rounded-none sidebar-list-line:rounded-l-none hover:bg-tint-hover theme-gradient:hover:bg-tint-12/1 hover:text-tint-strong contrast-more:hover:ring-1 contrast-more:hover:ring-inset contrast-more:hover:ring-current"><span class="">Enums</span></a></li><li class="flex flex-row relative h-fit mt-2"><a href="#enums-in-queries" class="relative flex flex-row items-baseline z-10 text-sm w-full py-1 px-3 transition-all duration-200 rounded-md straight-corners:rounded-none sidebar-list-line:rounded-l-none hover:bg-tint-hover theme-gradient:hover:bg-tint-12/1 hover:text-tint-strong contrast-more:hover:ring-1 contrast-more:hover:ring-inset contrast-more:hover:ring-current"><span class="">Enums in queries</span></a></li><li class="flex flex-row relative h-fit mt-2"><a href="#custom-property-converters" class="relative flex flex-row items-baseline z-10 text-sm w-full py-1 px-3 transition-all duration-200 rounded-md straight-corners:rounded-none sidebar-list-line:rounded-l-none hover:bg-tint-hover theme-gradient:hover:bg-tint-12/1 hover:text-tint-strong contrast-more:hover:ring-1 contrast-more:hover:ring-inset contrast-more:hover:ring-current"><span class="">Custom Property Converters</span></a></li><li class="flex flex-row relative h-fit ml-3 my-0 sidebar-list-line:ml-0"><a href="#things-to-look-out-for" class="relative flex flex-row items-baseline z-10 text-sm w-full py-1 px-3 transition-all duration-200 rounded-md straight-corners:rounded-none sidebar-list-line:rounded-l-none hover:bg-tint-hover theme-gradient:hover:bg-tint-12/1 hover:text-tint-strong contrast-more:hover:ring-1 contrast-more:hover:ring-inset contrast-more:hover:ring-current subitem sidebar-list-line:pl-6 opacity-8 contrast-more:opacity-11 sidebar-list-default:rounded-l-none sidebar-list-default:border-l sidebar-list-default:border-tint"><span class="">Things to look out for</span></a></li><li class="flex flex-row relative h-fit mt-2"><a href="#list-array-types" class="relative flex flex-row items-baseline z-10 text-sm w-full py-1 px-3 transition-all duration-200 rounded-md straight-corners:rounded-none sidebar-list-line:rounded-l-none hover:bg-tint-hover theme-gradient:hover:bg-tint-12/1 hover:text-tint-strong contrast-more:hover:ring-1 contrast-more:hover:ring-inset contrast-more:hover:ring-current"><span class="">List/Array types</span></a></li><li class="flex flex-row relative h-fit mt-2"><a href="#custom-types-in-queries" class="relative flex flex-row items-baseline z-10 text-sm w-full py-1 px-3 transition-all duration-200 rounded-md straight-corners:rounded-none sidebar-list-line:rounded-l-none hover:bg-tint-hover theme-gradient:hover:bg-tint-12/1 hover:text-tint-strong contrast-more:hover:ring-1 contrast-more:hover:ring-inset contrast-more:hover:ring-current"><span class="">Custom types in queries</span></a></li></ul></div><script nonce="NGY5NmIzMGYtMDc5YS00MGNjLTlhZjYtZTZkZDY5NTMzZWM0">$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("B:0","S:0")</script></body></html>