This message was deleted.
# general
s
This message was deleted.
w
You cant filter an
Array<Resource>
directly, but you could map it to a
Array<Output>
then all it to an
Output<Array>
then apply with a callback that runs a filter to get another
Output<Array>
which you could pass as an input there. Depending on what you are trying to ultimately do with the filtered array - something like that should work.
c
@white-balloon-205 I'm not sure if I could follow, but give it a try. Would you have an example that you could point me to?
w
Do you have an example of the code you are trying to write? The answer will depend a bit on how you are trying to use the resulting array of resources.
c
@white-balloon-205 sorry for the delay, I didn't see your reply. I no longer have the snippet, but let's see if this makes sense: I have Github repositories and after their creation, I want to assign repositories with certain topics to certain teams. Essentially: filter the repository resources by topic and then take those that I want and create a new resource. Does that make sense? If not, I can prepare the snippet.