Andrew Connell

Microsoft Learning: Optimize data usage when using Microsoft Graph with query parameters

Learn how to control the amount of data returned by Microsoft Graph to optimize queries using query parameters.

I work with Microsoft Learning to publish & maintain multiple self-paced learning modules related to Microsoft 365. These modules are primarily used as self-paced study resources for developers preparing to take the MS-600 exam , the only prerequisite to achieve the Microsoft 365 Certified: Teams Application Developer Associate certification. This is one of those modules.

Microsoft Graph provides a unified programmability model that you can use to build apps for organizations and consumers that interact with the data of millions of users. Microsoft Graph APIs implements many of the OData protocol’s query parameters. In this module, you’ll learn how to manipulate queries using query parameters.

Query parameters will help you achieve multiple tasks such as limiting the amount of data returned by requests to Microsoft Graph such as controlling how many fields are returned for each record, how many records are returned, also filtering and searching for wanted information.

This module will also cover other query parameters that can be used for combining multiple requests in a single HTTP request. Combining requests is done by leveraging batching and expanding related items to avoid additional HTTP round-trips to Microsoft Graph.

Learning objectives

By the end of this module, you’ll be able to:

  • Demonstrate how to manipulate REST queries with query parameters
  • Create queries that expand complex entities
  • Demonstrate how to search for content with Microsoft Graph
  • Optimize Microsoft Graph queries with batching
Andrew Connell
Developer & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to delivering industry-leading on-demand video training to professional developers. He lives with his wife & two kids in Florida.