You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, I have a fieldmask with paths = {a.b.c, a.b, a.x.d, a.g.f}
I want to transform all paths containing more than 3 nodes so that only the first 2 nodes remain in them. Then remove the matches.
In result i want {a.b, a.x, a.g}
Is there an opportunity to do something like this?
The text was updated successfully, but these errors were encountered:
nickolation
changed the title
Is it possible to reduce the mask to some path depth?
Is it possible to reduce the fieldmask to some path depth?
Feb 3, 2023
Can you supply an example program that illustrates as much as possible what you’re trying to do?
The way your question is currently worded, I could say “sure, just remove everything after the first 2 dots”. I’m not sure if the problem you’re facing is that the number of dots is variable, or something else entirely…?
For example, I have a fieldmask with paths = {a.b.c, a.b, a.x.d, a.g.f}
I want to transform all paths containing more than 3 nodes so that only the first 2 nodes remain in them. Then remove the matches.
In result i want {a.b, a.x, a.g}
Is there an opportunity to do something like this?
The text was updated successfully, but these errors were encountered: