Home / Companies / Sanity / Blog / July 2021

July 2021 Summaries

5 posts from Sanity

Filter
Month: Year:
Post Summaries Back to Blog
In "Kap & Lauren learn GROQ - Part 7," the hosts explore various functions within GROQ, a query language, highlighting their practical applications. They delve into the defined() function, which evaluates arguments for truth, falsehood, or nullity, and demonstrate its use in filtering content by price. The round() function is used to round numbers to specified decimal places, showcased by rounding product prices. The text() function, specific to the pt namespace, extracts plain text from portable text blocks, useful for editing product descriptions. The length() and count() functions are also examined, with length() providing character counts and count() tallying array elements, such as the number of images associated with products. The session emphasizes the utility of these functions in efficiently managing and manipulating data within GROQ, inviting viewers to engage with future episodes for further learning.
Jul 22, 2021 645 words in the original blog post.
Sanity Content Lake serves as a real-time data backend for applications, and with a new integration available on the Vercel marketplace, developers can seamlessly connect their projects to Sanity.io datasets for data storage, synchronization, and querying. This integration allows for quick setup without initially defining extensive content models or editing environments, offering a flexible approach to handling JSON data in the cloud through a decoupled NoSQL document backend. Developers can add content by making authenticated POST requests to the mutation API or using Sanity's SDKs, and as projects grow, a Sanity Studio can be configured for more advanced content management with version control and collaboration features. The integration is particularly beneficial for Next.js applications deployed on Vercel, where API routes can manage form submissions, enhancing the developer experience. Sanity encourages feedback and project sharing within its community to further enhance and refine the integration.
Jul 15, 2021 355 words in the original blog post.
In the latest episode of "Kap & Lauren learn GROQ - Part 5," the hosts delve into the use of the ellipsis operator (...) within GROQ queries, particularly in the context of managing projections and scopes while working with an e-commerce sample dataset. They demonstrate how the ellipsis operator facilitates the inclusion of all product attributes in a query, enabling users to efficiently count categories associated with candy products without listing each attribute individually. The episode highlights the utility of the ellipsis operator in crafting custom fields and computations, as illustrated through a detailed query that extracts image metadata, title, and price from product documents. Despite initial challenges, Kap and Lauren effectively illustrate the power of the ellipsis operator in simplifying complex data projections, encouraging viewers to learn more by watching the episode on YouTube or following their Twitch channel for future programming.
Jul 06, 2021 335 words in the original blog post.
June has been an eventful month for the Sanity community, marked by a Custom Input Challenge that inspired numerous innovative submissions, including advanced numeric inputs and video thumbnail components. InVision's launch of Freehand, a collaborative online whiteboard, was highlighted, with Sanity's role as the underlying content platform being celebrated. The month also featured successful use cases of Sanity, such as the transformation of Huggins Reddien LLP's website from a hardcoded Ruby-On-Rails app to a fully manageable Gatsby app, and Grab a Coffee's effective use of Sanity.io with Next.js for recruiting tech talent. Henrique Doro's creation of a VSCode extension for Sanity snippets further accelerated the development of Sanity schemas, showcasing the community's continuous drive for innovation and collaboration.
Jul 06, 2021 1,117 words in the original blog post.
Magnus Hillestad, CEO, emphasizes the importance of seamless, personalized digital interactions, highlighting localization as a key factor in reaching global audiences effectively. To streamline this process, an integration with Smartling has been developed, offering a fully automated translation solution for Sanity's structured content. This integration simplifies the complex task of language translation by allowing developers to authenticate through an API token and select datasets for translation projects. It supports both manual and automatic translation triggers and enables dynamic workflows for quicker turnaround times, while maintaining access to professional translation services. By treating content as data, Sanity allows translated material to be distributed across various digital channels globally, ensuring brand-aligned, efficient content dissemination.
Jul 06, 2021 396 words in the original blog post.