'How to get partial text matching results for user entered text using filter or search or any other parameters in GraphApi using .net SDK

How to get partial text matching results for user entered text using filter or search or any other parameters in GraphApi using .net SDK?

currently using below api for getting exact filtered results for user entered text

var testresult = await graphClient 
.Sites["xxxxxxxxx.sharepoint.com:/teams/xxxxxxxxxx:"]
.Lists["Documents"]
.Items
.Request()
.Expand("Fields")
.Filter($"startswith(Fields/FileLeafRef, 'user entered text')")
.GetAsync();

But query will work with exact results, but i need to get partial match results also



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source