Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть GraphQL list query naming conventions

  • The Geordie Webmaster
  • 2023-07-31
  • 682
GraphQL list query naming conventions
web developmentreactjsjavascriptes2015htmlcsscode
  • ok logo

Скачать GraphQL list query naming conventions бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно GraphQL list query naming conventions или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку GraphQL list query naming conventions бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео GraphQL list query naming conventions

In this episode, we’ll explore some of the different naming conventions for querying lists of items.

Plural queries like "articles." They communicate clearly that the response will contain a collection of items, and the name itself is concise and straightforward.

Moving on to action-based queries such as "getArticles." These indicate that the aim is to retrieve something without any side effects. It's worth noting though, that this can be seen as redundant, since by nature, GraphQL queries are used to fetch data.

Next, we have domain-specific queries. These provide a clear indication of the type of items that will be returned. They prove extremely useful when working with queries that return multiple types, especially with GraphQL union types.

Then we come to queries with a collection suffix, like "articleCollection." These clearly highlight that the query will return a collection of items. However, the term "collection" can often be redundant, leading to a longer query name.

"All" prefix queries such as "allArticles" emphasize that all entries for a specific type are being queried. However, it could potentially cause confusion if a filter argument is passed, leading to not "all" items being returned.

In the end, the choice of naming convention is up to you when designing a schema. But the most common and arguably the most intuitive approach is the plural format. It’s clean, concise, and easily identifiable based on the entity it represents. Adding arguments to filter, limit, and skip records creates little ambiguity, making it clear what the query will return.

Whatever you decide, be consistent. If you decide to use something a little unconventional or ugly, be consistent.

Learn more about #GraphQL https://graphql.wtf

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]